1,683 questions
14
votes
2
answers
31k
views
Encountering 503 Error When Calling Gemini API from Google Colab
I'm working on a project using Google Colab to run Python code that interacts with the Gemini API (a part of Google's Cloud AI tools). The goal is to automate call transcript categorization into ...
0
votes
2
answers
411
views
Google Auth Service Account Bearer Photo API
I am trying to upload an image to google photos service using a google service account with a domain-wide delegation to use a [email protected] account.
Somehow I only get a 401 error: "...
1
vote
0
answers
138
views
Google Docs API - 403 - googleapiclient.errors.HttpError: 403
Problem:
I am facing this error-
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://docs.googleapis.com/v1/documents?alt=json returned "The caller does not have ...
0
votes
1
answer
54
views
403 Forbidden Error when updating caption track via captions.update
I’m using the Python client library (google-api-python-client) to call captions.update, but I keep getting a 403 forbidden even though I’ve granted all the obvious scopes. I’d appreciate any insight ...
6
votes
7
answers
10k
views
Google generative api with palm: 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT"
I have been trying to use the Palm API and the palm.chat() function with google's new generative api. I've been in a maze of documentation and errors and I can't seem to get past this one. My code is ...
0
votes
0
answers
115
views
Google OAuth2 Refresh Token Expires Quickly Despite “offline” Access (Unverified Published App)
Problem:
Even after requesting “offline” access and saving the refresh token, the refresh token stops working after 1 day or sometimes just a few hours.
Actual error: Reauthentication is needed. ...
0
votes
1
answer
43
views
Remove resource from event where caller is not the organizer using Google Calendar API?
I'm trying to remove resources (conference rooms) that have declined events. It works as expected for events where the caller is the event organizer, but not if another person is the organizer. The ...
25
votes
8
answers
18k
views
Google & Oauthlib - Scope has changed
I am using OAuthlib for conducting OAuth flow of Google. It was working well for 4 to 5 months. Suddenly I started getting below error:
File "/home/whitesnow-2/Gaurav/Axonator/AxVirtualEnv/local/...
15
votes
8
answers
65k
views
Google oAuth 2.0 API Authentication Error: Error 400 - redirect_uri_mismatch (does not comply with policy) DJANGO APP
I am trying to get my google authentication working on a Django app that is requesting Gmail and Calendar data. I have set up the oAuth API in the Google developer console and linked it with my ...
0
votes
0
answers
129
views
Problem authenticating users' youtube brand accounts
An issue appeared today on my app where when users try to link their youtube brand accounts through the google oauth flow, they get stuck after agreeing to the terms and conditions. They are not ...
0
votes
0
answers
59
views
Vertex AI Feature Store - Unable to Fetch Historical Feature Values
I'm trying to retrieve historical feature values from Vertex AI Feature Store following the documentation. I'm running the example notebook from vertex-ai-samples. Everything works fine until running:
...
2
votes
1
answer
2k
views
Google calendar API - Appointment schedule
In Google calendar you can add "Appointment schedule"
These are events that repeat periodically. But they are not created from ordinary events. They are created precisely by the schedule.
...
0
votes
0
answers
30
views
Occasional "Invalid email or password" with Firebase auth in pyrebase4
I am using Firebase's Firestore and have built a backend API server using FastAPI. I am also using Firebase's login feature with the Pyrebase4 library (referenced from: https://github.com/nhorvath/...
0
votes
0
answers
57
views
Youtube API token expires after a few days
I wrote a little python app which will stop and create broadcast via the Youtube API at defined times.
It works all fine but the token created at the first start or when a token does not exists when ...
0
votes
0
answers
47
views
Google API for Monetization Issue when accessing Youtube Revenue data for channel
I have the ClientId and SecretKey json file and trying to get the estimatedRevenue for the youtube channel.
I have this scope defined
SCOPES = ["https://www.googleapis.com/auth/yt-analytics-...
0
votes
2
answers
133
views
Listing Google Drive files returning empty list (Python)
I am testing my python connection to Google Drive using Python Google API Client. I am able to establish a connection, but I am not getting back a list of objects from Google Drive. I wonder if a lack ...
2
votes
1
answer
193
views
Google DV360 Reporting - Error while fetching performance metrics
I am trying to extract and download reports from DV360 API using python. I have gone through the documentation https://developers.google.com/bid-manager/guides/get-started/send-request ,but not able ...
0
votes
0
answers
211
views
Issue with redirect URI mismatch for Google OAuth 2.0
I am creating a Python script to generate a token from the user and store the generated token. While testing locally, everything worked fine when I used http://localhost:8000/ as the redirect URI in ...
0
votes
0
answers
29
views
Unable to download pdf from Tableau server with Auth token
Here is my code
from tableau_api_lib import TableauServerConnection
from tableau_api_lib.utils import querying,flatten_dict_column
from urllib import parse
config={
'tableau_online':{
'...
2
votes
0
answers
640
views
google.api_core.exceptions.ServiceUnavailable: 503 failed to connect to all addresses
The code runs perfectly in Google Colab, yet an errors in Jupyter Notebook.
The first error was
DeadlineExceeded: 504 Deadline Exceeded
Then I assigned my company PROXY os.environ['HTTPS_PROXY'] = ...
3
votes
3
answers
949
views
how to paginate in drive.permissions.list using google-api-python-client
My Problem
I have a GDrive folder of which I want to list the users having access to it. Unfortunately the API doesn't return more than 100 users and the documented solutions to paginate don't work.
(!...
3
votes
1
answer
6k
views
Parse Table data from a public google doc using Python
I have a URL to a public google doc which is published (It says published using Google Docs at the top). It has a URL in the form of
https://docs.google.com/document/d/e/<Some long random string, I ...
2
votes
1
answer
6k
views
Import "google.oauth2.credentials" could not be resolved Visual Studio Code
I am trying to use google.oauth2, google_auth_oauthlib.flow and googleapiclient.discovery for my web app. But I'm getting these errors:
Import "google.auth.transport.requests" could not be ...
0
votes
1
answer
655
views
Access data on my google drive using service account [duplicate]
I can't read the files that I saved on "Google Drive" using the code that You can see below.
I've yet enabled the "Google Drive API" in the GCP project.
I've yet created the "...
181
votes
23
answers
257k
views
Why is my Python App Engine app using the Translate API getting an error of ImportError: No module named apiclient.discovery?
I got this error in Google App Engine's Python have used Google Translate API,
But I don't know how to fix,
<module>
from apiclient.discovery import build
ImportError: No module named apiclient....