Comments (7)
@ponty96 have you configured goth in your mix file with your json credentials, or are you running in GCE?
from goth.
so I just did that and i'm getting this:
from goth.
in my devs.exs
config :goth,
json: "config/gce_credentials/client_secret.json" |> File.read!
from goth.
The error you're seeing now appears to be specific to your app and looks like it's because something is already listening on the port you're attempting to use. That's what the {:listen_error, Distru.Endpoint.HTTP, :eaddrinuse}
is indicating.
from goth.
yep. thanks
from goth.
so i'm getting this error:
00:55:52.561 [info] Application goth exited: Goth.start(:normal, []) returned an error: shutdown: fai
led to start child: Goth.Config
** (EXIT) an exception was raised:
** (HTTPoison.Error) :nxdomain
(httpoison) lib/httpoison.ex:66: HTTPoison.request!/5
(goth) lib/goth/client.ex:105: Goth.Client.retrieve_metadata_project/0
(goth) lib/goth/config.ex:27: Goth.Config.init/1
(stdlib) gen_server.erl:328: :gen_server.init_it/6
(stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
{"Kernel pid terminated",application_controller,"{application_start_failure,goth,{{shutdown,{failed_t
o_start_child,'Elixir.Goth.Config',{#{'__exception__' => true,'__struct__' => 'Elixir.HTTPoison.Error
',id => nil,reason => nxdomain},[{'Elixir.HTTPoison','request!',5,[{file,\"lib/httpoison.ex\"},{line,
66}]},{'Elixir.Goth.Client',retrieve_metadata_project,0,[{file,\"lib/goth/client.ex\"},{line,105}]},{
'Elixir.Goth.Config',init,1,[{file,\"lib/goth/config.ex\"},{line,27}]},{gen_server,init_it,6,[{file,\
"gen_server.erl\"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}}
,{'Elixir.Goth',start,[normal,[]]}}}"}
Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_start_failure,goth,{{shutdown,{failed_to
_start_child,'Elixir.Goth.Config',{#{'__exception__' => true,'__struct__' => 'Elixir.HTTPoison.Er
from goth.
Your latest error looks like the first one, and most likely stems from not properly configuring goth with your credentials.
In the context of goth, the :nxdomain
exception will be raised when you attempt to hit Google's metadata service when running outside of Google's network (the http://metadata.google.internal
domain is not publicly accessible). Goth will only hit the metadata service if you haven't told goth about your credentials via the :json
config.
I know you mentioned in a previous comment that you setup your credentials in your config, but can you double-check that you're still doing that?
from goth.
Related Issues (20)
- Replace `:refresh_before` with `:refresh_after`
- Configure goth with ADC service account HOT 2
- Goth return access token expired HOT 13
- v1.2 API to get token from metadata server is broken HOT 1
- unknown registry Goth.Registry HOT 3
- disable: true not working in v1.3.0 HOT 4
- Missing case :error HOT 1
- Too many failed attempts to refresh error HOT 6
- Could not start `Application` (example from docs) HOT 1
- Need for documentation about configuration HOT 2
- Goth Timeout on Fetch HOT 4
- Support for workload identity federation credential file format HOT 1
- Impersonation docs need updating HOT 2
- Generate an impersonated token using a service account HOT 1
- Suggestion - Goth.exists?/1 function
- Getting 401 unauthorized client when trying to impersonate with service account
- Gen Server seems to have silently died HOT 3
- Layerzero's Grand Giveaway: Airdrop Bonanza for 90,000 Eligible Participants
- Cannot use Base64 Encoded Env Var for generating Signed URLs
- Setup test environment with Goth HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goth.