# Investigation of API instability with ⁠gemini-3.8-flash⁠ — Intermittent HTTP 503 errors and transport timeouts

**URL:** <https://discuss.ai.google.dev/t/investigation-of-api-instability-with-gemini-3-8-flash-intermittent-http-503-errors-and-transport-timeouts/196264>\
**Category:** Gemini API\
**Tags:** gemini-flash, api, bug, ai-studio, gemini\
**Created:** [October 27, 2026, 9:43am UTC](https://discuss.ai.google.dev/t/investigation-of-api-instability-with-gemini-3-8-flash-intermittent-http-503-errors-and-transport-timeouts/196264 "2026-10-27T09:43:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hueliton\_Fernandes](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/hueliton_fernandes/32/162916_2.png) [@Hueliton\_Fernandes](https://discuss.ai.google.dev/u/Hueliton_Fernandes)\
**Post date:** [October 27, 2026, 9:43am UTC](https://discuss.ai.google.dev/t/investigation-of-api-instability-with-gemini-3-8-flash-intermittent-http-503-errors-and-transport-timeouts/196264/1 "2026-10-27T09:43:46Z")

</div>

Hello Google Cloud / Google AI Studio support team,

I would like to request an investigation regarding the availability and behavior of the ⁠gemini-3.8-flash⁠ model under my Free Tier project, specifically concerning intermittent failures registered during my requests.

Integration Context

**Environment:** Cloudflare Workers (server-side runtime).

**Integration Method:** Direct REST API calls via native ⁠fetch⁠ (no SDKs or third-party wrappers).

**Authentication:** ⁠x-goog-api-key⁠ HTTP header (API key securely managed in server environment variables).

Request Telemetry (October 27, 2026)

I executed isolated, minimal diagnostic tests directly from my production runtime—without request concurrency or complex payloads—to analyze connection behavior:

1. **HTTP 503 (Service Unavailable / Overloaded):**

**Timestamp:** 2026-10-27 09:02:13 UTC

**Result:** The model responded with **HTTP 503** in **6,148 ms**.

**Network Baseline:** Within the exact same execution cycle and Worker instance, a control check to ⁠[https:/example.com/\](https//example.com/)⁠ returned **HTTP 200 in 6 ms** , ruling out outbound network issues on my infrastructure.

2. **Timeout Without Response Headers:**

**Timestamp:** 2026-10-27 09:13:42 UTC

**Result:** The request hit my **45,000 ms** threshold and threw ⁠TimeoutError: The operation was aborted due to timeout⁠.

**Note:** The connection stalled at the transport layer before any response headers were initiated or received from Google’s endpoint.

Minimal Reproduction Code

Below is the exact function used in Cloudflare Workers to isolate the issue and capture telemetry:

> import { env } from “cloudflare:workers”;
> 
> export async function testarGemini() {  
> const apiKey = env.GEMINI\_API\_KEY;  
> if (!apiKey) {  
> throw new Error(“GEMINI\_API\_KEY is not configured.”);  
> }
> 
> const inicio = Date.now();  
> const response = await fetch(  
> “[https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent](https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent)”,  
> {  
> method: “POST”,  
> headers: {  
> “Content-Type”: “application/json”,  
> “x-goog-api-key”: apiKey  
> },  
> body: JSON.stringify({  
> contents: [  
> {  
> parts: [  
> { text: “Respond only with OK.” }  
> ]  
> }  
> ]  
> }),  
> redirect: “manual”,  
> signal: AbortSignal.timeout(45000)  
> }  
> );
> 
> const tempoAteCabecalhos = Date.now() - inicio;  
> const corpo = await response.text();
> 
> // Sanitize sensitive credentials from log outputs  
> const corpoSanitizado = corpo  
> .split(apiKey).join(“[REDACTED]”)  
> .replace(/AIza[\w-]+/g, “[REDACTED]”);
> 
> return {  
> status: response.status,  
> tempoAteCabecalhos,  
> tempoTotal: Date.now() - inicio,  
> corpo: corpoSanitizado.slice(0, 4000)  
> };  
> }

Questions for Support:

1. Is there any active capacity throttling or eligibility restriction affecting the ⁠gemini-3.8-flash⁠ model for Free Tier projects?

2. Could you inspect the request logs around the timestamps above to determine what caused the transport-level connection retention (timeout) and the 503 capacity errors?

I can provide my GCP / AI Studio Project ID through secure private channels upon request.

Thank you,

---

<div class="post-metadata">

**Author:** ![Pooja\_Kapse](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/pooja_kapse/32/24754_2.png) [@Pooja\_Kapse](https://discuss.ai.google.dev/u/Pooja_Kapse)\
**Post date:** [October 29, 2026, 11:28am UTC](https://discuss.ai.google.dev/t/investigation-of-api-instability-with-gemini-3-8-flash-intermittent-http-503-errors-and-transport-timeouts/196264/2 "2026-10-29T11:28:40Z")

</div>

Hello @Hueliton_Fernandes ,

503 errors are due to our services being temporarily overloaded. Please see this [pinned post](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640#p-234342-h-503-errors-4) for suggestions on how to handle this.
