© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
2 replies
jhd

return 522 using fetch in a worker to request api of another worker

When a worker requests the api under the domain name bound by another worker, 522 is returned. "The initial connection between Cloudflare's network and the origin web server timed out". But at the same time, the api of the worker accessed can be accessed normally on the public network.
https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_522&utm_campaign=4tr.cc
https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_522&utm_campaign=4tr.cc
. the error page shows i can find more info here but results of
Cloudflare protects this website. But, something went wrong trying to reach it
Cloudflare protects this website. But, something went wrong trying to reach it
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Workern to worker fetch 1042
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
Fetch requests in a Worker that is invoked from Service Binding always return 522
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Worker using fetch gets 522 from CF Pages Project
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago