Here’s the error message I’m receiving:
{
"error_message": "Access to the requested resource is forbidden.",
"error_stack": "ForbiddenError: Access to the requested resource is forbidden.\n at httpRequestFunction (index-cf.js:5062:21)\n at async Object.fetch (index-cf.js:7896:24)",
"error_name": "ForbiddenError"
}
I’ve created a minimal reproduction repository here: GitHub - chesha1/bn-getFlexibleProductPosition-reproduce
My application runs fine locally, but I encounter this ForbiddenError
after deploying it to Cloudflare.
I have already confirmed that the IP restrictions for this API key are disabled (set to “No restriction”), as shown below:
I’m wondering if Binance might be blocking requests originating from Cloudflare’s IP ranges. Is this expected behavior or a known issue?
For reference, here is a related GitHub issue on the topic: getFlexibleProductPosition throw an error · Issue #383 · binance/binance-connector-js · GitHub