I'm getting a 403 error on any `fetch` call
This is the raw error that I'm getting:
It worked previously, so I have no idea what the problem could be I attached the code that I'm using.
13 Replies
Mojang rate limits on IP so workers can get rate limited easily
Yeah I know but I changed the IP to another one hosted in my server and I get the same error
And the error says cloudflare even when calling external websites that don't use
What do you mean you changed the IP?
I tried using https://minecraftapi.eufonia.studio/KernelUwU it works anywhere except in the worker
And it shows the same error
Do you have Cloudflare in front of yours? If so then it could be your WAF blocking the sub request
I have it only for the second API
But the error is the same for both of them
Unfortunately don’t know then. I might be able to try it out later to see if I have the same issue
Don't worry, thank you for your help!
Possible you're missing a header like User-Agent? Not sure how your proxy works however
That's an interesting theory yes, I will try that later
@CelesteLove same issue, did setting UA help?
It didn't, I had to set up a proxy on my own infra, my theory is that mojang blocks cloudflare IPs
Cool thanks