0

A few days ago, everytime I tried to interact with GCP using serverless (deploy, log even remove), 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:4000:80a::200a:443
    at ClientRequest.<anonymous> (/home/nnn/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)

My cloud function uses the python runtime, and the only plugins I use are:

serverless-google-cloudfunctions
serverless-python-requirements

I haven't updated any dependencies for either serverless or GCP/gcloud cli. I've tried reauthenticating, using a different service account, specifying credentials in different ways. The gcloud CLI is able to interact with GCP without issue. My cloud function works when run locally. Any suggestions on what I might be missing, or how I could debug further would be really appreciated. Thanks!

SNS
  • 1

0 Answers0