All Questions
Tagged with google-cloud-platform python
5,137 questions
Best practices
1
vote
2
replies
64
views
How to create a functional test on an existing resource on Google Cloud?
Let's take a concrete example. I created the following my_function Python function:
from google.cloud.aiplatform import Endpoint
def my_function(existing_endpoint: Endpoint)-> str:
return ...
1
vote
0
answers
215
views
Bigquery storage API `to_arrow_iterable` returns only 8 rows at a time
I have this code to retrieve millions of rows from my BigQuery query results:
query_job = client.query(
query,
)
storage_client = bigquery_storage....
3
votes
1
answer
92
views
Distributed computing with Ray/Python has no parallelism at all on GCP
I am trying to setup a distributed environment for NLP processing. I use Ray and Python on GCP. I have a master and several workers. What happens is that when I run 1 worker or 8 workers, it takes ...
2
votes
0
answers
86
views
Signing jwt with google python libraries with impersonated credentials through WIF
I am using the github action google-github-actions/auth@v3 and following the documentation for workload identity federation through a service account within the github CI. I have created the workload ...
0
votes
1
answer
135
views
Optional nanoseconds when using `timestamp_format` in BigQuery Load Jobs?
I'm loading data into BigQuery and using LoadJobConfig. There's a timestamp_format field where you can specify the format of timestamps.
Checking the data I have, timestamps come in different format:
...
1
vote
1
answer
195
views
Google Chat App (Python/FastAPI) Returns "Failed to parse JSON" on All Response Formats Due to Add-on Pipeline Routing
I am attempting to deploy a simple Google Chat application using Python (FastAPI/Functions Framework) and an ngrok tunnel as the endpoint.
My goal is to create a standard, text-only chatbot that ...
6
votes
2
answers
8k
views
ResourceExhausted: 429 with "limit: 0" on Gemini API Free Tier (LangChain) even after new project
I am trying to use the Google Gemini API with langchain-google-genai in Python. I want to use the Free Tier, so I created a fresh project in Google AI Studio (without linking any billing account).
...
0
votes
0
answers
32
views
GCP API Response: Control Characters Forbidden: Invalid encoding
I built an API on GCP. The health endpoint is working properly:
curl -H "Authorization: bearer $(gcloud auth print-identity-token)" \
https://my-api-123.us-central1.run.app/health
{"...
-1
votes
1
answer
220
views
How to run nsjail on Google Cloud Run without prctl() errors?
Summary
I'm trying to deploy a Python code execution service using nsjail for sandboxing on Google Cloud Run, but nsjail fails with `prctl(PR_SET_SECUREBITS)` errors even with minimal configuration. ...
Advice
1
vote
0
replies
83
views
Billing during idle time
Service details
Scaling: Auto (Min: 0, Max: 1)
Billing: Request-based
the chrome browser was able to run during the idle time of the instance
app = Flask(__name__)
driver = None
@app.route("/&...
0
votes
1
answer
263
views
Getting maximum performance on Google Cloud Run for a single thread Python script
I’m running a Google Cloud Run service that exposes an API endpoint performing heavy computational tasks (CPU-bound).
The API will be called very occasionally and for now there will never be ...
1
vote
0
answers
103
views
How to obtain BigQuery Dataform metadata for dependencies/dependents info?
Is there any solution to use Python to extract BigQuery Dataform metadata of something else to get dependencies/dependents of each action in repository? The purpose is that I want to collect the ...
0
votes
0
answers
671
views
Gemini API RPD Limit Not Resetting After Upgrading to Paid Tier (Rate Limit Stuck)
upgraded my Google AI Studio project to Paid Tier 1 today, but my daily rate limit (RPD) for the Gemini API is still stuck and not resetting. I cannot send any requests, even after waiting over 24 ...
0
votes
1
answer
91
views
How do I exchange a service account for a tenant encoded token
Using identity platform I'd like to exchange a service account for a tenant encoded token. I need to do this because our GitHub action needs to make use of our cli tool which requires sign in by a ...
1
vote
2
answers
133
views
Compute instance on demand on google cloud for a websocket application
I have created a WebSocket application, and I have stored my server on a VM running on google-server-platform as an Compute Engine (I am really custom to the correct terminology). This VM is ...