Skip to content

Conversation

@adamantike
Copy link

This change considers the HTTP status code 520 ("Web Server Returned an Unknown Error") as a retryable error.

CloudFlare documentation reference:
https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-520/

This change considers the HTTP status code 520 ("Web Server Returned an
Unknown Error") as a retryable error.

CloudFlare documentation reference:
https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-520/
@Jamiras
Copy link
Member

Jamiras commented Dec 8, 2025

Can you give an example of something that would generate this error? If the server is crashing, we don't want to keep sending the request that caused the server to crash back to the server to cause it to crash more.

A retryable error is something we expect will recover soon.

@adamantike
Copy link
Author

Sure, that's a great point. I don't think I can find examples, but I can provide more information about an achievement trigger that failed on my end with error 520 and wasn't retried. That was the reason I started investigating where in RA's code the retryable status codes are defined.

In case the RA team has error tracking or logging enabled, we could try to understand whether this change is useful (e.g. crashes caused by OOM issues that wouldn't be related to the specific request but to current server state).

The unlock request that failed for my user was on achievement 170484, which based on RetroArch's automatic screenshot, was triggered at 2025-11-30 20:43:23 UTC. I got a different achievement (170482) two minutes after that, so I think the failed request was just a fluke.

@Jamiras
Copy link
Member

Jamiras commented Dec 9, 2025

We do capture exceptions (which includes out of memory errors). I only see two errors reported on 11/30, but neither matches your timestamp. And neither came from API calls.

image

The serialization error occurs a couple times on the following day as well, but there's nothing suggesting an issue with achievement unlocks.

And searching the error logs for "170484" and "adamantike" don't generate any results.

Unfortunately, we only keep about 48 hours of access logs, so I can't try to trace back to your particular interaction. But the only references to 520 I can find in it are content lengths. The 520 error code is happening at the Cloudflare level, so it's unclear what's happening on our end without some sort of way to correlate the events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants