I m encountering an issue when trying to connect to the palm2 API. When I make a request to the API from my local machine, I receive valid responses without any problems. However, when I attempt to connect to the same API from a server located in Amsterdam, I consistently receive the following error message:
{ "error": { "code": 400, "message": "User location is not supported for the API use.", "status": "FAILED_PRECONDITION" } }
It seems like the API is restricting access based on user location, and it s not allowing connections from the Amsterdam server. I suspect that the issue might be related to the server s IP address being flagged or blocked by the API.
我研究了一条轨道,发现使用代理可能会在类似情况下提供帮助,掩盖服务器的位置,并显示其来自不同地点的请求。 然而,在我采取这种做法之前,我希望从社区那里收集一些见解。
Has anyone else encountered a similar issue when trying to access an API that enforces location-based restrictions?
If using a proxy could be a potential solution, what are the best practices for setting up a proxy to route the requests from the Amsterdam server to the palm2 API?
是否有任何其他战略或做法,我应考虑绕过“User所在地不支持”错误,并成功地从阿姆斯特丹服务器上与APIC联系?