“code”: 400, “message”: “User location is not supported for the API use.”

Started getting the user location not supported even though myself and my server is in a region which is supported. It was previously working not not.
When accessing the API via curl it works when using IPv6 but not IPv4
How can I check to see what region google is seeing my IPV4 address as, all the geo location tools I’ve checked see it correctly.
Thanks

1 Like

I found a solution that worked for me in the end, in case anyone else is having the same problem I started my docker container which is a node application with the following environment variable:

NODE_OPTIONS="--dns-result-order=ipv6first"
1 Like

James, awesome, this nailed it for me. I run n8n on Coolify and had to first enable ipv6 networking like this:

  • Configured the Docker daemon (/etc/docker/daemon.json) to enable IPv6 globally and restarted Docker.

  • Stopped core Coolify containers, manually removed the old coolify network, manually recreated it with IPv6 support (docker network create --ipv6 coolify), and restarted core Coolify services using docker compose

  • Redeployed the n8n application via the Coolify UI, which automatically recreated its specific network (abcd1234) with IPv6 and connected the container to the updated networks.

Thanks a lot for this hint!