Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gemini Generative AI suddenly started failing with location error

Started getting below error which caused serious issue for our products.

Any idea why this started to appear, this was happening from any location.

Ex : From singapore this was happening which never happened before

encountered error with callAI core function, initiate reject GoogleGenerativeAIFetchError: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent: [400 Bad Request] User location is not supported for the API use

Solved Solved
1 4 3,142
1 ACCEPTED SOLUTION

Hi @pravinvram,

Welcome to Google Cloud Community!

I have identified a similar issue impacting our service, and a fix has been implemented. According to Vishal, the problem stemmed from an IP mapping error affecting a set of instances. This issue has been resolved, and we recommend checking if the problem persists. For further details and insights, please refer to this discussion thread.

I hope the above information is helpful.

View solution in original post

4 REPLIES 4

Hi @pravinvram,

Welcome to Google Cloud Community!

I have identified a similar issue impacting our service, and a fix has been implemented. According to Vishal, the problem stemmed from an IP mapping error affecting a set of instances. This issue has been resolved, and we recommend checking if the problem persists. For further details and insights, please refer to this discussion thread.

I hope the above information is helpful.

Same issue occurring again

Yes got sorted now, but this is a serious issue. We had complaints from many customer 😞

This is happening again, what was the fix? It started last night and all day today so far, same issue - [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [503 Service Unavailable] The model is overloaded. Please try again later.