Bug: API traffic routed to US despite region setting
Hello Team,
I've noticed an issue with API request routing. Even though I have set my database's region to ap-southeast-2, it appears the API requests are still being handled by a server in the United States.
My database URL is:
https://viocha-workspace-pi24jb.ap-southeast-2.xata.sh/db/test:main/sql
When I make an API call, here are the network details from my browser:
Request Method: POST
Status Code: 200 OK
Remote Address: 172.67.74.191:443
Referrer Policy: strict-origin-when-cross-origin
A GeoIP lookup for the remote address (172.67.74.191) shows the following:
IP: 172.67.74.191
Location: United States
Provider: Cloudflare, Inc. ISP
This indicates the traffic is not being routed to the specified ap-southeast-2 region. Could you please look into this?
Thank you.
2 Replies
It seems that my requests are being sent to a server in the United States, likely because they are being routed through a Cloudflare proxy. This has significantly increased the request latency. Would it be possible to disable the proxy so that requests can be made directly to the ap-southeast-2 server node?
Hi there! The
sql
endpoint is, unfortunately, routed to the proxy as you noted. There is no way to disable it. You can use the xata sdk to avoid the proxy.
https://lite.xata.io/docs/sdk/sql/overview
https://lite.xata.io/docs/sdk/get
It's important to bear in mind that we recommend using Xata Lite for personal projects only.