-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected error determining execution environment: request to http://metadata.google.internal./computeMetadata/v1/instance failed, reason: socket hang up #711
Comments
Greetings! It looks like the code you're running is trying to get credentials from the GCE Metadata server, which should only really happen if you're running inside of Google Cloud. Are you running this code locally? In a VM? Knowing where it's running would be super helpful :) |
@JustinBeckwith Thanks for reply. I am running this code locally. Yes, I know GCE Metadata, for some reason, the network in my country can't connect to google domain, that's why I am trying to use a proxy server. BTW, the proxy server works fine. I am sure about that. |
I just got this issue as well. Found this open issue but will keep looking as I hope I don't have to wait for a fix to get through this :) Trying to use the bigquery API from inside a docker container, locally. Node.js application. |
Aaand I forgot to load our .env file! Unfortunately I am a little used to Google libraries returning these nonspecific errors and having to fish around for the problem 😢 Hope we keep improving though! Great work guys, thanks 😄 |
@mrdulin are you continuing to bump into issues connecting through a proxy? |
also running into this error when trying to hit BQ from React. Tried running with/without specifying a service account cred file and neither seems to work. also getting this error from time to time and not sure how to interpret:
|
@mattfarkas I believe this is likely a different issue, related to the fact that It might be worth referencing a blog post like this: https://blog.angularindepth.com/google-apis-with-angular-214fadb8fbc5 Which another user wrote up regarding porting googleapis to a Webpacked environment. |
@mattfarkas did you figure anything out? samething with react + bq |
@mrdulin I'm closing this thread for now, there have been a few bug fixes to our metadata library, and I'm hoping you're back on your feet -- please feel free to reopen if you're continuing to bump in to issues. @mattfarkas @trojans10, there's a blog post here you might check out, about about bundling our libraries with WebPack: https://blog.angularindepth.com/google-apis-with-angular-214fadb8fbc5 there is also some documentation here, on how to run our gRPC libraries with an HTTP fallback (which makes it possible to run them in React front-end): |
Environment details
google-auth-library
version: "^4.0.0"Steps to reproduce
https_proxy
The text was updated successfully, but these errors were encountered: