My app suddenly throws 522 error for images, although no changes were made to the code

martindimovwdHOBBY

3 months ago

Hi, I just noticed my website throws 522 for a favicon. I thought removing the code for loading the image would solve the problem, but the same error appears for the next image on the website. I downloaded the project on my machine and it works locally. Then I committed the code to the same branch used for the Railway Project, but the same issue appears. The website has been working for almost 2 years without any changes done to the repository.

Awaiting User Response

5 Replies

3 months ago

Hello,

Can you show me your Cloudflare DNS setup?

If your domain points to anything other than the CNAME 1sjj0l25.up.railway.app you have it setup incorrectly.

Best,
Brody


Status changed to Awaiting User Response railway[bot] 3 months ago


martindimovwdHOBBY

3 months ago

This is the setup now, but please bear in mind the website was working fine before changing it.

Attachments


Status changed to Awaiting Railway Response railway[bot] 3 months ago


3 months ago

I may have been working fine before, but if you had it incorrectly set up we make no guarantees of it staying working.

That highly cropped screenshot shows me a www subdomain, your service has a root domain, if you want the root domain to work, you need to set it up in Cloudflare too.


Status changed to Awaiting User Response railway[bot] 3 months ago


martindimovwdHOBBY

3 months ago

This is how the setup looks at the moment. In another threat I noticed there Full vs Full (strict) encryptions might be causing trouble. Could that be the case here as well?

Attachments


Status changed to Awaiting Railway Response railway[bot] 3 months ago


3 months ago

Your root domain is incorrect, I'm not sure where you got that IP address but we do not provide IP addresses, you need to use a CNAME at the root.

Your SSL/TLS mode needs to be Full, not Full strict.

Please remove all the custom domains from your Railway service, and remove all the DNS settings from Cloudflare, and then add your domains back to Railway and follow the instructions with the given CNAMEs.


Status changed to Awaiting User Response railway[bot] 3 months ago


My app suddenly throws 522 error for images, although no changes were made to the code - Railway Help Station