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

a year 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.

Solved

5 Replies

brody
EMPLOYEE

a year 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 12 months ago


martindimovwd
HOBBYOP

a year 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 12 months ago


brody
EMPLOYEE

a year 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 12 months ago


martindimovwd
HOBBYOP

a year 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 12 months ago


brody
EMPLOYEE

a year 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 12 months ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...