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.
I've researched a bit and found that using a proxy could potentially help in situations like this, by masking the server's location and making it appear as if the request is coming from a different location. However, before I proceed with this approach, I wanted to gather some insights from the community.
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?
Are there any other strategies or approaches I should consider to bypass this "User location is not supported" error and successfully connect to the API from the Amsterdam server?