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
Chaika
Chaika12mo ago
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.
No description
EnglishRobin
EnglishRobinOP12mo ago
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.
Chaika
Chaika12mo ago
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.
EnglishRobin
EnglishRobinOP12mo ago
Custom domain has been set up for about a week with no issues reported from other staff members.
Chaika
Chaika12mo ago
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
EnglishRobin
EnglishRobinOP12mo ago
No, I don't have any workers set up. I want to keep the page as dead simple as possible.
Chaika
Chaika12mo ago
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?
EnglishRobin
EnglishRobinOP12mo ago
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.
Chaika
Chaika12mo ago
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
Chaika
Chaika12mo ago
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 …
EnglishRobin
EnglishRobinOP12mo ago
Clicking + Create bulk redirect list under Bulk Redirects does nothing. I'll try adding www as a custom domain.
Chaika
Chaika12mo ago
Search engines will penalize you for duplicate content iirc which is why it just isn't recommended
Chaika
Chaika12mo ago
wydm it does nothing though? You don't get to name list?
No description
EnglishRobin
EnglishRobinOP12mo ago
Nope. Nothing shows up. Clicking the blue button does nothing.
No description
Chaika
Chaika12mo ago
click on the second create bulk redirect list button it looks like the display is bugged if you have none created
EnglishRobin
EnglishRobinOP12mo ago
Thanks, that worked Looks to be all fixed. tyvm for all the help!
Chaika
Chaika12mo ago
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
EnglishRobin
EnglishRobinOP12mo ago
Yeah. Looks like it was autoconfigured by Cloudflare, but autoconfigured incorrectly. ¯\_(ツ)_/¯
Want results from more Discord servers?
Add your server