AgentNeel
AgentNeel
CDCloudflare Developers
Created by AgentNeel on 10/16/2024 in #workers-help
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....
2 replies