#The Amazon CloudFront distribution is configured to block access from your country
3 messages · Page 1 of 1 (latest)
Hi @mossy badge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but the knowledge sources do not contain specific information about workarounds for the error "The Amazon CloudFront distribution is configured to block access from your country" when calling third-party APIs from the Convex backend. This error is generally related to the configuration of the third-party service (e.g., Binance or others) and their use of Amazon CloudFront to restrict access based on geographic location.
There is no mention in the provided sources of Convex offering a built-in solution or workaround for bypassing such geographic restrictions when making outbound HTTP requests from Convex actions or functions. The only related information is about troubleshooting API connectivity issues (such as incorrect URLs or network errors), but not about circumventing geo-blocks or CloudFront restrictionsFacing error when calling api in actions.
If you need to access a third-party API that blocks requests from your country, you may need to consult with the API provider to see if they can allow your region or provide an alternative endpoint. Alternatively, you could consider routing requests through an allowed region, but this is not covered in the Convex documentation or support threads.