Google Gemini stream termination after OAuth2 token refresh failure

A person holding a cell phone in their hand

Problem A live streaming service continuously sends audio/video frames to the Google Gemini API using the generateContent streaming endpoint. Every few hours the stream terminates with an authentication error similar to: ERROR: 401 Unauthorized detail: Invalid or expired OAuth2 token The termination is abrupt: the client receives an HTTP 401, the underlying gRPC stream is … Read more

Google Gemini function call format error from on-prem Kubernetes via VPN

A person holding a cell phone in their hand

Problem When a service running in an on‑premises Kubernetes cluster invokes the Google Gemini Function Calling API over a site‑to‑site VPN, the request fails with a 400 Bad Request and the response body contains: { “error”: { “code”: 400, “message”: “Function call format error: payload does not match expected schema”, “status”: “INVALID_ARGUMENT” } } The … Read more

Google Gemini OAuth2 token acquisition failure after service account rotation

Google sign

Problem An automated ETL pipeline invokes the Google Gemini API for model inference. After rotating the Google Cloud service account used for authentication, the pipeline repeatedly fails to acquire an OAuth2 access token. All subsequent Gemini requests return 401 Unauthorized errors, causing the data processing job to abort. Root Cause The failure stems from a … Read more

Gemini scheduler pod placement failure after adding new model microservice

White cube with colorful star logo on gradient background

Gemini Scheduler Pod Placement Failure After Adding New Model Microservice Problem The Google Gemini scheduler repeatedly reports FailedScheduling for pods belonging to the newly introduced model‑service microservice. Deployments stall, and the kubectl get pods output shows pods stuck in Pending state: NAME READY STATUS RESTARTS AGE model-service-7c9f5d9d9b-abcde 0/1 Pending 0 2m30s Cluster-wide impact includes: Increased … Read more

Google Gemini batch job fails to start due to node port conflict

A person holding a cell phone in their hand

Problem – Gemini Batch Job Fails to Start with “node port conflict” In a multi‑node Google Gemini deployment on Kubernetes, batch processing jobs are scheduled via the gemini-batch controller. Operators observed that newly created jobs never transition to Running. The pod logs contain a clear error: 2026-10-18T07:42:13.214Z ERROR node_port_conflict.go:87] Failed to bind node port 30001: … Read more

Google Gemini index rebuild failure during inference causing request timeouts

White cube with colorful star logo on gradient background

Problem: Index Rebuild Failure During Inference Leads to Request Timeouts In a production inference service powered by Google Gemini, real‑time prediction requests began experiencing latency spikes that quickly escalated into complete request timeouts. The service logs showed repeated failures of the internal vector index rebuild step that Gemini performs on‑the‑fly when new embeddings are added … Read more

Gemini RAG pipeline connection timeout to vector store after autoscaling

A person holding a cell phone in their hand

Problem: Gemini RAG pipeline cannot connect to the vector store after autoscaling The Gemini Retrieval‑Augmented Generation (RAG) pipeline is deployed on a managed cloud service that scales compute instances automatically. After a scale‑out event, the pipeline consistently fails to retrieve documents from the configured managed vector store. The failure manifests as connection timeouts and, intermittently, … Read more

Google Gemini real-time stream drops events after filter parse error

a close up of a computer keyboard with a google logo on it

Problem – Real‑time Stream Drops Events After Filter Parse Error In a Google Gemini deployment that ingests live video/audio streams, user‑defined filter expressions are evaluated on each incoming event to route content to moderation pipelines. Operators observed that after a certain point the pipeline silently stops processing events. The only clue in the Gemini service … Read more

Google Gemini SAML assertion invalid error during inter‑service call

Google sign

Problem Description Microservices that run on GKE, Cloud Run, or Cloud Functions invoke the Google Gemini API using SAML‑based workload identity federation. During inter‑service calls the Gemini client returns: SAML Assertion is invalid: Expired or SAML Assertion is invalid: Audience mismatch These errors prevent the services from authenticating to Gemini, causing request failures such as … Read more

Google Gemini logprob NaN after network latency spike in hybrid cloud

Google logo neon light signage

Problem Description During inference with the Google Gemini model in a hybrid‑cloud deployment, the logprob field in the response payload intermittently contains NaN or null values. The symptom manifests as: Inconsistent token scoring – generated text appears correct, but downstream ranking logic that relies on log probabilities fails. API errors such as HTTP 400 with … Read more