Service bindings not working: Error - env is not defined
I want to order a paid service, if I am able to make my project work. But this is not working. There are many other posts, which shows this area is not working properly. So I am trying to determine, if this can work for me.
The service bindings in the example on Cloudflare docs refers wrangler. I am trying to setup HTTP service bindings between two workers without wrangler.
For testing, I have used and setup an example and have implemented exactly from below:
https://www.raymondcamden.com/2023/08/11/connecting-cloudflare-workers-with-service-bindings
The binding from frontworker is already created with backlogic and to point to the backworker.
In the frontworker, I cannot add a variable backlogic as it says this is defined.
In the backworker, the fetch method is shown under the event trigger mapped to the frontworker. Thus, both workers are connected.
In the editor it says that env is not found.
In the frontend, it gives an error 1100.
What am I doing wrong or what have I missed?
Can someone help me please?
Would really appreciate....
Connecting Cloudflare Workers with Service Bindings
Using service bindings to connect one Cloudflare Worker to another
1 Reply
Can you share some code and exactly what issue you're hitting?
If it's env is not defined, please share your code of the fetch function and your env usage