Coder Social home page Coder Social logo

Comments (4)

peburrows avatar peburrows commented on June 24, 2024

I'm gonna need more information than that; a 403 could mean a number of different things.

from goth.

peburrows avatar peburrows commented on June 24, 2024

Do your credentials work on the system you transferred them from?

from goth.

vans163 avatar vans163 commented on June 24, 2024

Yes. creds work fine on that system, i just transferred the project over and did a icloud sdk installation jst incase.

The ERTS and elixir versions are different. I am thinking maybe something is wonky. Testing more ATM..

Copied everything over to another system and it works.. testing more

Exact same code inside a different app

{:ok, token} = Goth.Token.for_scope("https://www.googleapis.com/auth/cloud-platform")
** (MatchError) no match of right hand side value: {:error, {:invalid, "<", 0}}
    (goth) lib/goth/token.ex:67: Goth.Token.from_response_json/3
    (goth) lib/goth/client.ex:54: Goth.Client.get_access_token/3
    (goth) lib/goth/token.ex:100: Goth.Token.retrieve_and_store!/2

(the < error means its sending back the 403 forbidden)

Exact same app copied to a different system

{:ok, token} = Goth.Token.for_scope("https://www.googleapis.com/auth/cloud-platform")
{:ok,
 %Goth.Token{
   expires: 1565430969,
   scope: "https://www.googleapis.com/auth/cloud-platform",
   sub: nil,
   token: "ya29.c.ElpgefafeefaaefafeaeffeaZG5j5mc2lYGDI",
   type: "Bearer"
 }}

The mix.lock files are exactly the same.

from goth.

vans163 avatar vans163 commented on June 24, 2024

Holy shit i never use config files. its had to be called config.exs not config.ex! Possibly add an error if the config file :gothjson is not set right?

from goth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.