Can't make post request to other worker

I'm making a fetch request to another worker from a worker and it isn't being picked up the worker that should be receiving the request. Is there something that would be blocking this?
3 Replies
shapeshifter
shapeshifterOP17mo ago
I'm able to make the request to the receiving worker from Postman without an issue but I can't make it from the sending worker I'm getting a 404 from within the worker. They are using the same zone
Chaika
Chaika17mo ago
If you're fetching a worker from another worker running in the same zone, it'll just go right through the worker and attempt to contact the origin behind it (if any) You want to use Service Bindings for worker to worker communication: https://developers.cloudflare.com/workers/configuration/bindings/about-service-bindings/
Service bindings · Cloudflare Workers docs
Service bindings are an API that facilitate Worker-to-Worker communication via explicit bindings defined in your configuration.
shapeshifter
shapeshifterOP17mo ago
thank you
Want results from more Discord servers?
Add your server