522 response from inside worker

If fetch a specific url locally I get a “200 OK” response. But if I fetch it from the worker “watchdog” I get a “522” response. The url is hosted by a worker on the same cloudflare account. Is this the problem? What should I change?

Yes. A worker cannot call another worker in the same zone.

Use Service bindings which are for Worker-to-Worker communication.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.