You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this google sheets verified source to get data to bigquery. Basically I have a small CI/CD pipeline which bundles my code in a Docker image in Artifact Registry, makes Cloud Run Jobs accordingly for each pipeline and then run them periodically.
With this source I get an error stating: "Must have a tty or interactive mode for web flow". This is referring to the GcpOAuthCredentials, but I'm using GcpServiceAccountCredentials so I wouldn't need tty or interactive mode.
Possible fix that I found is swapping around the credentials typing from:
I'm not too sure why this fix worked, but ultimately it worked fine for me so I'm keeping it like this. Also not sure whether this also fixes issues for other production environments than Google Cloud Run Jobs obviously.
Another issue that Alena provided was commenting out this part:
if isinstance(credentials, GcpOAuthCredentials):
credentials.auth("https://www.googleapis.com/auth/spreadsheets.readonly")
Expected behavior
No response
Steps to reproduce
Setup a google_sheets pipeline, bundle code in a docker image hosted in artifact registry, make a cloud run job based on this docker image and correctly add command, arg and secrets at runtime.
How you are using the source?
I run this source in production.
Operating system
Linux
Runtime environment
Other
Python version
3.12
dlt destination
Bigquery
Additional information
No response
The text was updated successfully, but these errors were encountered:
dlt version
1.0.0
Source name
google_sheets
Describe the problem
I use this google sheets verified source to get data to bigquery. Basically I have a small CI/CD pipeline which bundles my code in a Docker image in Artifact Registry, makes Cloud Run Jobs accordingly for each pipeline and then run them periodically.
With this source I get an error stating: "Must have a tty or interactive mode for web flow". This is referring to the GcpOAuthCredentials, but I'm using GcpServiceAccountCredentials so I wouldn't need tty or interactive mode.
Possible fix that I found is swapping around the credentials typing from:
To:
I'm not too sure why this fix worked, but ultimately it worked fine for me so I'm keeping it like this. Also not sure whether this also fixes issues for other production environments than Google Cloud Run Jobs obviously.
Another issue that Alena provided was commenting out this part:
Expected behavior
No response
Steps to reproduce
Setup a google_sheets pipeline, bundle code in a docker image hosted in artifact registry, make a cloud run job based on this docker image and correctly add command, arg and secrets at runtime.
How you are using the source?
I run this source in production.
Operating system
Linux
Runtime environment
Other
Python version
3.12
dlt destination
Bigquery
Additional information
No response
The text was updated successfully, but these errors were encountered: