Skip to content

Dataform CLI Error: request to https://oauth2.googleapis.com/token failed #2040

@BenJackGill

Description

@BenJackGill

The Dataform CLI is throwing errors like this:

Dataform encountered an error: request to https://oauth2.googleapis.com/token failed, reason: 
FetchError: request to https://oauth2.googleapis.com/token failed, reason: 
    at ClientRequest.<anonymous> (/Users/BenJackGill/.nvm/versions/node/v22.17.0/lib/node_modules/@dataform/cli/node_modules/node-fetch/lib/index.js:1501:11)
    at ClientRequest.emit (node:events:518:28)
    at emitErrorEvent (node:_http_client:104:11)
    at TLSSocket.socketErrorListener (node:_http_client:518:5)
    at TLSSocket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)
    at runNextTicks (node:internal/process/task_queues:69:3)
    at listOnTimeout (node:internal/timers:549:9)

Each time I do gcloud auth application-default login and it works for one or two more commands before showing the same error again.

I am using the latest @dataform/cli@3.0.36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions