Requests sent to generativelanguage.googleapis.com from a VPS hosted in Canada consistently fail with the error: User location is not supported for the API use.
Canada is listed as an available region for Gemini API. However, this specific VPS IP seems to be misclassified or restricted by the internal location verification mechanisms.
Technical Details:
-
Server Region / Country: Canada
-
VPS Public IP:
158.69.62.239 -
Target Endpoint:
generativelanguage.googleapis.com -
Error Code / Message:
400 / User location is not supported for the API use. -
Behavior: HTTPS connection establishes properly (no timeout), Google responds directly with the location error.
-
Control Test: The exact same API request succeeds from a home connection (
201.218.157.108).
Request: Please review and update the IP geolocation / routing whitelist entry for IP 158.69.62.239 so it aligns with standard Canadian region access for Gemini API.