ashish10alex / ashish10alex/vscode-dataform-tools
bug: FetchError when running dataform CLI (Google OAuth token request fails)
- Dominant language
- TypeScript
- Stars
- 94
- Forks
- 16
- Avg merge
- 4m
- Merged PRs (30d)
- 7
Description
**Describe the bug**
When running the dataform run command, the CLI sometimes fails with a FetchError when trying to request a token from Google OAuth (https://oauth2.googleapis.com/token). This prevents the execution of queries even though compilation succeeds.
I need to run it several times until it works.
**To Reproduce**
1. I'm running this command line or clicking the execute button:
`dataform run --timeout=5m --include-deps --include-dependents --actions "table-path"`
**Expected behavior**
CLI should authenticate and run the queries - executing the tables.
**Screenshots**
**Environment:**
- Operating system: Ubuntu 24.04.3
- Dataform: 3.0.27
- dataform-tools 0.16.2
- node: v22.15.0
- npm: 11.4.1
- ...
Contributor guide
Research direction
Start by reproducing the dataform run command with the listed Ubuntu, Dataform, dataform-tools, Node, and npm versions, while observing requests to oauth2.googleapis.com/token. Investigate why the Google OAuth token request intermittently returns FetchError even when compilation succeeds. Done means authentication succeeds reliably and the requested tables execute without repeated runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, node.js, typescript, vscode
- Domain
- authentication, cli, cloud, data-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100