503 Service Unavailable, 504 Gateway timeout.

Hi, we are using cloudflare pages plans (business) and I am facing a problem that seems to come directly from cloudflare. I have already done all the necessary checks to verify that the problem is not from our side (at least partially). as you can see in the order of the images, cloudflare pages (ORIGIN) is responding correctly, however in the EDGE I get 503, 504 errors randomly especially when the request comes from earlyHintsCache, however I have disabled it and I still have this problem. Errors 499, 503 are properly logged in WAF, however error 504 is not logged in WAF, it is as if it never happened. I have about 5 rules applied especially cache, I have added the website in development mode and also the problem occurs, I have tried to move the api to closer places and also occurs. my flow is as follows: request->web[astrojs]->fetch(graphql[backend-in-aws])->user the problem has been going on since day 3, nothing has been modified since that day.
No description
No description
No description
No description
18 Replies
Walshy
Walshy4w ago
504 & earlyHintsCache can be ignored
Walshy
Walshy4w ago
That just means there was a cche miss with early hints -
Cloudflare Docs
Early Hints · Cloudflare Pages docs
Early Hints help the browser to load webpages faster. Early Hints is enabled automatically on all pages.dev domains and custom domains.
Miia
MiiaOP4w ago
thank you for replying, I have spoken to support. It is a cloudflare problem. I have switched to vercel for testing and everything works. (vercel)
No description
Miia
MiiaOP4w ago
No description
Miia
MiiaOP4w ago
since switching to vercel, no more 503 errors have been registered on the edge.
Miia
MiiaOP4w ago
No description
Miia
MiiaOP4w ago
the problem with the error is that, the origin responds 200, but the edge responds 503, which makes me lose impressions in adsense. and I disabled the earlyHintsCache and it doesn't work or improve either. it keeps failed. it seems that the cloudflare edge servers are having degradation and performance problems.
Walshy
Walshy4w ago
i'd still need more info to see what the issue is - can you give the zone?
Miia
MiiaOP4w ago
zone? account id?
Walshy
Walshy4w ago
you can't disable early hints for Pages, it'll always happen but the 504s are not sent to eyeballs and do not impact anything I wish we didn't show them at all in logs/analytics but we do today
Miia
MiiaOP4w ago
the 504 error is affecting me.
Walshy
Walshy4w ago
the domain the 504 is 100% not unless there's some not from early hints but i'd need more info to look
Miia
MiiaOP4w ago
For example, if google bot enters, and I receive the 504, the google bot detects the url down, and disables the ads.
Miia
MiiaOP4w ago
No description
Miia
MiiaOP4w ago
No description
Miia
MiiaOP4w ago
I send it to you privately? it is affecting me too much, this started to happen on 3/10/2025 or so. google contacted me on 3/10/2025 advising me that I should talk to my provider, as they are having a lot of problems.
Walshy
Walshy4w ago
you can dm me yeah but i will reply back here
Miia
MiiaOP4w ago
oh yes np

Did you find this page helpful?