Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth not working for filesystem gdrive verified source #1214

Closed
dat-a-man opened this issue Apr 12, 2024 · 0 comments
Closed

OAuth not working for filesystem gdrive verified source #1214

dat-a-man opened this issue Apr 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dat-a-man
Copy link
Collaborator

dlt version

0.4.7

Describe the problem

When attempting to load a Parquet file from Google Drive to a destination using service account credentials, the operation proceeds without issue. However, utilizing OAuth credentials results in an error despite ensuring that all necessary permissions for accessing, reading, and downloading content from Google Drive have been granted to the OAuth credentials. This error has been consistently encountered across different platforms, including macOS and Codespaces. The specific error message is as follows:

In processing pipe filesystem_jsonl_team_data: extraction of resource filesystem_jsonl_team_data in generator filesystem caused an exception: <HttpError 403 when requesting https://www.googleapis.com/drive/v3/files/19Qmr9ZU-Kb9SA13WB5uqfGRLa5ePzu4d?fields=name%2Cid%2Csize%2Cdescription%2CmimeType%2Cversion%2CcreatedTime%2CmodifiedTime%2Ccapabilities&supportsAllDrives=true&alt=json returned "Request had insufficient authentication scopes.". Details: "[{'message': 'Insufficient Permission', 'domain': 'global', 'reason': 'insufficientPermissions'}]">

This error message indicates that the request was denied due to insufficient authentication scopes. Despite the permissions being ostensibly configured correctly, the OAuth credentials used has have the necessary scopes to perform the operation.

Expected behavior

The Oauth credentials should work as smoothly as service account credentialy without any changes required to be done to environment or source.

Steps to reproduce

Mentioned in the PR: #1040

Operating system

Linux, macOS

Runtime environment

Local

Python version

3.11

dlt data source

filesystem

dlt destination

Google BigQuery

Other deployment details

No response

Additional information

No response

@dat-a-man dat-a-man added the bug Something isn't working label Apr 12, 2024
@rudolfix rudolfix moved this from Todo to Planned in dlt core library Apr 15, 2024
@github-project-automation github-project-automation bot moved this from Planned to Done in dlt core library Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants