Getting 522 errors on static Pages site
Hey all,
I'm new to Cloudflare and have set up a fully static website. My visitors are suddenly getting 522 errors when trying to visit it. I can't replicate it myself, but I have users complaining from the US and Europe. Anyone know what's going on?
Pages site: https://kbtl-website.pages.dev/ (also https://kinkbetweenthelines.com/)
deployment ID: 86434f93-05fa-4ce2-ab90-94cad63dc00f
account ID: 246253aa898a65b4dcf0bb57e5cf5ac6
18 Replies
They get them constantly, or is there any pattern to them? It appears fine to me. Uptrends, a simple http testing website isn't seeing any errors at any of their 30 locations or so either https://www.uptrends.com/tools/uptime?toolRequestGuid=84a3e4fd-6b8e-4cb5-bd73-70b52667971f
Website Uptime Test: Check Website Status | Uptrends
Is your website down right now, or is it just you? Check your website uptime and availability around the world.
I've got direct reports from users in Canada and Belgium that they consistently can't access the website, and are getting 522s. They've tried both regular browsing & incognito mode.
One of my other users in Amsterdam is seeing the problem intermittently, and also having trouble with the .org -> .com redirect I have set up in DNS.
Did you just setup this Custom Domain, or has it been around for a bit before this issue started?
I don't see any other reports of this, 522s can happen if the custom domain is misconfigured but it'd be for everyone constantly and not just a few.
Custom domain has been set up for about a week with no issues reported from other staff members.
interesting. possible you have a worker running in front of anything? You could check under Worker Routes. It's the only thing I can think of that could result in an error like that conditionally
No, I don't have any workers set up. I want to keep the page as dead simple as possible.
That's good, keeps it simple. Still weird though. Do you know if they get the same error if they try the pages.dev itself?
Haven't been able to check. Did send out a notice about the pages.dev site though. It might be okay through pages.dev, but I only have one user report - which is the intermittent Amsterdam one - where it made a difference.
I've been able to get more info back from users.
Looks like the issue is with the www domain.
DNS config is set as a Proxied CNAME to the root .com domain.
oh lol that makes perfect sense then. You need to add the www as another custom domain under the Pages Project if you want it to work
or you could have it redirect https://developers.cloudflare.com/pages/how-to/www-redirect/
Redirecting www to domain apex · Cloudflare Pages docs
In this guide, you will learn how to redirect the www subdomain to your apex domain (example.com). This is a common question and can be achieved by …
Clicking
+ Create bulk redirect list
under Bulk Redirects
does nothing.
I'll try adding www
as a custom domain.Search engines will penalize you for duplicate content iirc which is why it just isn't recommended
wydm it does nothing though? You don't get to name list?
Nope. Nothing shows up. Clicking the blue button does nothing.
click on the second create bulk redirect list button
it looks like the display is bugged if you have none created
Thanks, that worked
Looks to be all fixed. tyvm for all the help!
no problem! Sometimes I forget people still use www lol, would have been an easy thing to check. But yea for Pages anything that is CNAME'd to the pages.dev needs to be a custom domain in the pages project
Yeah. Looks like it was autoconfigured by Cloudflare, but autoconfigured incorrectly. ¯\_(ツ)_/¯