Workers throwing 404 when live

I'm working on a Micro-services architecture but with CF workers and when the gateway forwards the API calls to other workers i get the error on the picture. This error only occurs when live
No description
4 Replies
Walshy
Walshy5w ago
are you trying to fetch the other worker? you should use service bindings: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/
Nduka Success
Nduka SuccessOP5w ago
Thanks but it doesn’t say how I can expose endpoints. I use http and not rpc
Walshy
Walshy5w ago
you can env.WORKER.fetch('https://worker.local/whatever-path-you-want') https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/http/
Nduka Success
Nduka SuccessOP5w ago
Thanks

Did you find this page helpful?