[GH-ISSUE #2945] [BUG]: all google models - Error fetching - fetch failed #1877

Closed
opened 2026-02-22 18:26:57 -05:00 by yindo · 1 comment
Owner

Originally created by @garyohanlon76 on GitHub (Jan 7, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2945

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

All google models report this error - Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:streamGenerateContent?alt=sse: fetch failed - this has been going on for a while, interestingly on first booting machine it sometimes works for a few messages.
image

Are there known steps to reproduce?

This is just in normal use, with goolges paid and non paid apis on all models and happens on all requests, other api's work as expected.

Originally created by @garyohanlon76 on GitHub (Jan 7, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2945 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? All google models report this error - Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:streamGenerateContent?alt=sse: fetch failed - this has been going on for a while, interestingly on first booting machine it sometimes works for a few messages. ![image](https://github.com/user-attachments/assets/f4bcd208-52a6-4291-aca3-c8aa4edfe652) ### Are there known steps to reproduce? This is just in normal use, with goolges paid and non paid apis on all models and happens on all requests, other api's work as expected.
yindo added the possible bug label 2026-02-22 18:26:57 -05:00
yindo closed this issue 2026-02-22 18:26:58 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jan 7, 2025):

If it works intermittently this would suggest this is an access to the Gemini service and not our code. The reason being that if our code did not work - it would never work at all.

If it only fails sometimes this would seem to indicate some rate-limit or 500 error is occurring. The example above shows an empty chat history, which is even more bizarre for it to fail. Closing until we can repro - I just tested with my key and Gemini 2.0 Flash exp and can send many chats...

@timothycarambat commented on GitHub (Jan 7, 2025): If it works intermittently this would suggest this is an access to the _Gemini service_ and not our code. The reason being that if our code did not work - it would never work at all. If it only fails sometimes this would seem to indicate some rate-limit or 500 error is occurring. The example above shows an empty chat history, which is even more bizarre for it to fail. Closing until we can repro - I just tested with my key and Gemini 2.0 Flash exp and can send many chats...
yindo changed title from [BUG]: all google models - Error fetching - fetch failed to [GH-ISSUE #2945] [BUG]: all google models - Error fetching - fetch failed 2026-06-05 14:43:13 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1877