-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User location is not supported for the API use #587
Comments
I was able to workaround the problem by moving my servers to Sweden. Still, I cannot depend service that can just randomly start denying my requests. The issue has been ongoing for 6 hours (and still is) until I was able to get down to "fix" it (it's a weekend after all) |
If it supports proxy configuration, you can try routing it through the Sweden network. |
+1 having the same problem, hoping a fix is coming |
Current workaround seem to be VPN or just simply switch the VM location. |
My server in Finland also started getting error 400. After moving to the Polish server everything was fine. But within 2 weeks I started getting error 400. After two weeks the error disappeared. And after another two weeks it appeared again. It seems Google blocks requests from certain IP addresses, then unblocks them, and everything starts all over again. Why and for what reason? |
Hello, same here. In our case the issue was that Google disabled access from Hetzner via IPv4. If you have to use IPv4 - for example in docker environment, you can setup a proxy (I used squid) with dns configuration: dns_nameservers 2001:4860:4860::8888 2001:4860:4860::8844 # Google IPv6 DNS and use env vars in container: curl
google.generativeai
(or another IP address where the proxy is running) |
Description of the bug:
My production just went down out of the blue, after 2 weeks since integrating Gemini.
Actual vs expected behavior:
No response
Any other information you'd like to share?
I'm currently on the Pay-as-you-go plan.
pyproject.toml:
google-generativeai = "^0.8.1"
I'm using the most basic config:
Stack trace:
My servers are located in Warsaw. I can successfully run from localhost also from Poland, but all of my prod requests are failing.
The text was updated successfully, but these errors were encountered: