A 522 error typically happens when Cloudflare requests to the origin (your webserver) get blocked. Review the suggestions in this Community Tip for troubleshooting ideas.
Thanks @matteo, already been there. We’ve passed this to the ISP support staff who are unable to replicate the error. I’m assuming that this is because they use their own nameservers and not Cloudflare’s.
Their most recent response was …
I have checked the error log on the server but I can’t find errors regarding this issue. Also, I can’t find a high load on the server when you received the error.
Any other ideas because I’m perplexed. Especially since the js file is returned by just changing one character of the query string!
Yes, I don’t doubt that this is ISP related … but it’s being able to prove it to them that makes it tricky.
Do you mean the file is being served for you even with the first link? It’s still showing 522 for me on both landline broadband and 3G. Also tried different browsers.
This is what the service provider say as well. I’ve tried again but still get the 522 error on both landline broadband and mobile 3G. Any idea why that might be?
So far I’ve tried Safari and Chrome on MaxOS, Edge on Windows 10 and Safari on an iPhone XS (not on the wifi). None produce the JS file, only the 522 error.
Try opening a ticket with Cloudflare. To contact Cloudflare Customer Support, login & go to https://dash.cloudflare.com/?account=support and select get more help. Please give Support the complete details and link to your Community post.