serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
272 stars 127 forks source link

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

Open ninas opened 1 year ago

ninas commented 1 year ago

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?