© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago
thipperz

Fetch requests in a Worker that is invoked from Service Binding always return 522

Curl requests to the target api are working fine. I tried moving the fetching code from that Worker to an API route in Next-on-Pages. When I do that, it works perfectly.

Not sure what else can I try. My situation seems close to this issue:
https://github.com/cloudflare/workers-sdk/issues/2589
GitHub
🐛 BUG: Doing fetch requests in a Worker that is invoked from Servic...
Which Cloudflare product(s) does this pertain to? Pages What version of Wrangler are you using? 2.8.0 What operating system are you using? MacOS Describe the Bug Bound Worker This Worker is called ...
🐛 BUG: Doing fetch requests in a Worker that is invoked from Servic...
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

Detect when worker was invoked via service binding
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Worker fetch always return code 429
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3w ago
return 522 using fetch in a worker to request api of another worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago