peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
289 stars 111 forks source link

just an error #53

Closed vans163 closed 3 years ago

vans163 commented 5 years ago
{:ok, token} = Goth.Token.for_scope({
...(1)>     "43143433-compute@developer.gserviceaccount.com",
...(1)>     "https://www.googleapis.com/auth/cloud-platform.read-only"})
** (MatchError) no match of right hand side value: :error
    lib/goth/client.ex:44: Goth.Client.get_access_token/2 
    lib/goth/token.ex:150: Goth.Token.retrieve_and_store!/2

Im using the JSON file from GCP.

lcezermf commented 5 years ago

@vans163 do you mean the option 2 from https://github.com/peburrows/goth#installation?

Could you please post here the config line?

vans163 commented 5 years ago

I think something was wrong on my end, but I got it working just error was cryptic.

bfolkens commented 5 years ago

I'm seeing the same issue when using:

config :goth,
  disabled: true
helenmedrano commented 4 years ago

@vans163 I'm getting this same error. Any chance you remember the fix?

wojtekmach commented 3 years ago

If you have more information how to reproduce the error, please let us know.