API exception TypeError: Load failed sending request

I’m using the genai typescript SDK and recently I’m seeing a lot of errors: “exception TypeError: Load failed sending request”.

Here are some details of the request:

Audio file size: – 1088044 – “bytes” – “(1.04 MB)”
Estimated base64 size: – 1490621 – “bytes” – “(1.42 MB)”
Prompt size: – 27138 – “bytes” – “(26.50 KB)”
Total payload estimate: – 1517759 – “bytes” – “(1.45 MB)”
Model: – “gemini-3-pro-preview”
Audio MIME type: – “audio/wav”

The request fails almost immediately, after 0.12 seconds.

When my app retries after 1s, it typically works on the retry. This started happening recently, and I don’t think anything in my app changed other than the prompt getting about 5% bigger.

Is this the best place to report the issue? What else can I collect that would help?

Hi @tleyden, welcome to the community!

Thanks for your question. While I’d love to help, this forum is dedicated to the Gemini API and Google AI Studio. For issues with other Google products, it’s best to check their specific help communities or support pages.

As you are facing issues with GenAI SDK, please report the issue on Github under the appropriate repository.GitHub - googleapis/js-genai: TypeScript/JavaScript SDK for Gemini and Vertex AI.

1 Like