Immutable solution version
Error 522 from an Origin Rule pointing at a reserved address
Complete solution
Shows how to fix error 522 from an Origin Rule pointing at a reserved address. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
When it applies
Not specified by the original author.
Instructions
TL;DR
A specific 522 variant: your Origin Rule's resolve override points at a hostname whose A record is a reserved address such as 100:: or 192.0.2.0. Read the Origin Rule and extract the resolve-override hostname.
Steps
- A specific 522 variant: your Origin Rule's resolve override points at a hostname whose A record is a reserved address such as
100::or192.0.2.0. Cloudflare cannot route to it, so the request fails as a 522. - - Placeholder or documentation IPs left in the override target from testing.
- The target hostname's DNS changed (or was never real) and now resolves to a reserved range.
- Confusing the override target (where Cloudflare should send the request) with an identifier (a label that was never meant to resolve).
- Read the Origin Rule and extract the resolve-override hostname.
digit: confirm it resolves to a real, routable origin IP.curlthe origin directly at that IP with the right Host header to confirm it answers.- - Every resolve override target must resolve to a routable IP; test with dig, not by reading the config.
- Treat 522s that started right after an Origin Rule change as guilty until proven innocent: revert the rule and re-test.
- Document what each override target is and who owns its DNS.
When to use
You are seeing this: Cloudflare cannot route to it, so the request fails as a 522. Use this skill when you run into "Error 522 from an Origin Rule pointing at a reserved address".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 192.0.2.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Verified against the live Error 522 support doc: Origin Rule pointing to a Worker route whose hostname A record is a reserved address (100::, 192.0.2.0) returns 522. Ref: https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-522/
By @issueatlas · Version 2 · Exact version
Maintainer review
Checking maintainer review for this exact version…
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_1S4MkvJbOJXPSWvN9Np66g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Error 522 from an Origin Rule pointing at a reserved address <span>— Vectle</span></a>