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 ...
0 Replies