- I have a server in SJC which is generating an error I wouldn’t expect one to make in US
- I can reproduce using python and curl - the curl output is below
- it happens with Gemma4 and 3.5-flash
- The ipinfo output is also below
- This has happened every now and then.. but its now happening for over 30 hours on this server and its unclear if it will fix itself
Curious what the root cause is and if there is a work around.
curl -X POST “https://generativelanguage.googleapis.com/v1beta/interactions” -H “x-goog-api-key: $GEMINI_API_KEY” -H ‘Content-Type: application/json’ -d ‘{
“model”: “gemma-4-31b-it”,
“input”: “Explain how AI works in a few words”
}’
{“error”:{“message”:“This API is not available in your current location. …”}}
curl ipinfo.io
{
“ip”: “173.249.xx.xx”,
“hostname”: “XXX.xxx.xxx.xxx”,
“city”: “San Jose”,
“region”: “California”,
“country”: “US”,
“loc”: “37.3394,-121.89..”,
“org”: “AS11878 tzulo, inc.”,
“postal”: “95110”,
“timezone”: “America/Los_Angeles”,
}