Skip to content
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

All serverless commands failing with EHOSTUNREACH when trying to access google oath #304

Open
ninas opened this issue Jan 24, 2023 · 0 comments

Comments

@ninas
Copy link

ninas commented Jan 24, 2023

This started a few days ago.
If I run any command that interacts with GCP, I get the following error:

Environment: linux, node 18.12.1, framework 3.25.1 (local) 3.25.1v (global), plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
FetchError: request to https://www.googleapis.com/oauth2/v4/token failed, reason: connect EHOSTUNREACH 2607:f8b0:4005:813::200a:443
    at ClientRequest.<anonymous> (/home/nina/code/polar/polar-hr/src/refresh_function/node_modules/node-fetch/lib/index.js:1494:11)
    at ClientRequest.emit (node:events:513:28)
    at ClientRequest.emit (node:domain:489:12)
    at TLSSocket.socketErrorListener (node:_http_client:494:9)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket.emit (node:domain:489:12)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

1 deprecation found: run 'serverless doctor' for more details

This is a python cloud function. My only dependencies are:

serverless-google-cloudfunctions
serverless-python-requirements

I haven't updated anything on my system, or any of the dependencies.
I've tried re-logging in to gcloud, changing the auth account used, double checked the keys, etc.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant