Generate object error User location is not supported for the API use

Hi there.

We’re using Typescript SDK, so in Bun/Node you can simply say dns.setDefaultResultOrder("ipv6first").

Not sure what the Python equivalent would be.

I see thank you ! Is there anything to be done on server side ? I mean like something to configure regarding the hetzner instance ? (networking or firewalls etc..)

With Node/Bun, dns.setDefaultResultOrder("ipv6first") in the app is sufficient to prioritize IPv6 addresses in name lookups. No need to change the server configuration.

If you want to prefer IPv6 system-wide, you could try adding this line to /etc/gai.conf:

precedence ::/0  100

Be prepared that this could impact other things you have running on the server.

Interesting thank you ! I might have some reading to do on the possible impacts of IPv6 switch then :thinking:

Same issue here from a machine in a Scaleway data center in Paris, France :france:
All worked fine last week but now, i get this “User location is not supported for the API use” error from Google.

We fixed this by using another IPv6 on our machine.

1 Like