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
Chaika5mo 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
EnglishRobin5mo 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
Chaika5mo 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
EnglishRobin5mo ago
Custom domain has been set up for about a week with no issues reported from other staff members.
Chaika
Chaika5mo 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
EnglishRobin5mo ago
No, I don't have any workers set up. I want to keep the page as dead simple as possible.
Chaika
Chaika5mo 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
EnglishRobin5mo 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
Chaika5mo 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
Chaika5mo 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
EnglishRobin5mo ago
Clicking + Create bulk redirect list under Bulk Redirects does nothing. I'll try adding www as a custom domain.
Chaika
Chaika5mo ago
Search engines will penalize you for duplicate content iirc which is why it just isn't recommended
Chaika
Chaika5mo ago
wydm it does nothing though? You don't get to name list?
No description
EnglishRobin
EnglishRobin5mo ago
Nope. Nothing shows up. Clicking the blue button does nothing.
No description
Chaika
Chaika5mo ago
click on the second create bulk redirect list button it looks like the display is bugged if you have none created
EnglishRobin
EnglishRobin5mo ago
Thanks, that worked Looks to be all fixed. tyvm for all the help!
Chaika
Chaika5mo 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
EnglishRobin5mo ago
Yeah. Looks like it was autoconfigured by Cloudflare, but autoconfigured incorrectly. ¯\_(ツ)_/¯
Want results from more Discord servers?
Add your server
More Posts
Multiple Worker API Gateway ArchitectureI am seeking guidance on best practices and a sample repository that can help me understand how to pclosing old websocket server instances without errorsim trying to implement a ping pong logic combined with an ip rate limiter i created a Map() like soCache broken?Since January 11 the build time of our pages application has increased from 1.5m to >6.5m with (AFAIchange pages functions watch directories in wranglerWhen running pages functions locally wrangler watches only the functions directories. Is there a wayBug in flarectl, Cloudflare API docs, cloudflare-go and cloudflare-rshttps://developers.cloudflare.com/api/operations/zones-get Owner should always have email, id and tError: internal error when replied to a get request with websocket upgrade headers with a websocketIn one of my subdomains, I am redirecting a post request containing websocket upgrade headers to anoIs there an example to create a websocket with a DO for an http/2 request?I am trying to create and return a websocket to a specific request but if the request is made with hMJML on Cloudflare WorkerHas anyone got mjml to work on a cloudflare worker? I have also tried mjml-browser and I get “windowAnyone have a n example of Validating Cf-Access-Jwt-Assertion from a workerThe JS example in the docs https://developers.cloudflare.com/cloudflare-one/identity/authorization-cabout cloudflare policies and rulesso I am trying to build a ecommerce builder like shopify as a solo developer. so for hosting all use