503 issue

it's a proxied worker
23 Replies
zegevlier
zegevlier2y ago
You didn't think this was from your worker right? Could it be coming from something at heroku? Not really sure how they work 😅
daniel_klungo
daniel_klungo2y ago
it definitely could! just find it very weird that it 503's directly from Heroku
daniel_klungo
daniel_klungo2y ago
zegevlier
zegevlier2y ago
If you visit the worker directly, or use a tool like Postman, Insomnia, Httpie, etc. to make a request like heroku would, do you get the error as well?
daniel_klungo
daniel_klungo2y ago
nope, it works, so I'm thinking either this is something with Heroku, or CF is blocking or rate limiting the heroku instance
zegevlier
zegevlier2y ago
If CF was blocking the herku instance, I wouldn't expect a 503 error 🤔
daniel_klungo
daniel_klungo2y ago
hmmmmmm looked like 503's often was the result of rate limiting I'll dig a bit deeper
zegevlier
zegevlier2y ago
If the CF ratelimiter did it, you would get a 429
daniel_klungo
daniel_klungo2y ago
that's good to know!
zegevlier
zegevlier2y ago
Do you also have the page that's returned with that request? Maybe that reveals where it's from
daniel_klungo
daniel_klungo2y ago
this is from the server itself, done on the backend
zegevlier
zegevlier2y ago
The heroku server?
daniel_klungo
daniel_klungo2y ago
A “Error 503: Service Temporarily Unavailable” with “Cloudflare” means you are hitting a connection limit in a Cloudflare data center. When this happens, please contact Cloudflare Customer Support. Include as many of the details mentioned in the Quick Fix Ideas as possible.
yeah, request is sent from the backend at heroku to my worker looking like this is a CF issue
zegevlier
zegevlier2y ago
Ooohokay, so the worker is requesting heroku? I missed that part 😅
daniel_klungo
daniel_klungo2y ago
nope I have a server hosted on Heroku that is making a request to a CF Worker the request is being done by the backend (on Heroku), not from client-side visiting a URL on Heroku apologies for my lack of clarity 😅
zegevlier
zegevlier2y ago
Ah okay then I understood correctly! Still not sure why it happens though, but it could be that thing you quoted above 🤔
daniel_klungo
daniel_klungo2y ago
it doesn't even show up as a request on the real-time logging when I use the worker.dev route it works
daniel_klungo
daniel_klungo2y ago
these two should, in theory, be the exact same
daniel_klungo
daniel_klungo2y ago
but as you can see, https://files.instorier.com/file/1/0VxftDQZL2.json returns a 503, while https://images.instorier.workers.dev/file/1/0VxftDQZL2.json correctly returns 404
daniel_klungo
daniel_klungo2y ago
zegevlier
zegevlier2y ago
Just to confirm, you have the orange cloud enabled in the DNS for files.[yourdomain], right?
daniel_klungo
daniel_klungo2y ago
yes and I'm using the discard-way of routing it in the DNS settings which I'm now seeing is the old way just updated this to using custom domains, and the errors are still there
daniel_klungo
daniel_klungo2y ago