Getting error 400 User location is not supported for the API use - FAILED_PRECONDITION

Hi,

I’ve been getting this error for the past week:
{"error":{"code":400,"message":"User location is not supported for the API use.","status":"FAILED_PRECONDITION"}}

Before this, everything was working fine. I’m using a Render web service on the free plan, and my instance is deployed in the Singapore region. It worked properly for a few weeks, but then suddenly stopped working.

Could you please help me understand why this is happening and how I can fix it?

Thanks.

The same is happening to me. I am also using my API key on Render free plan, and it just stopped working since this week. Have you managed to fix it?

Not yet, for now i just create a new instance in different region after having a discussion with Render’s team and now its working fine

I ran into the same issue.

using Render free plan, deploying in the Singapore region, using Gemini API (I used the Gemini 2.5 flash). And the same error appears.

The fix that work for me: create a new Render service with the region set to Oregon (US West).

I think that you cant change the region of an existing service, so a new deployment is necessary.

Hope this helps!