Pages function not binding to worker
I am trying to use a service binding to bind my page "function" to a worker.
When calling
env.myotherworker.fetch(req)
I get "Fetch API cannot load: <url provided in req>"
Please see attached images for additional dashboard related info3 Replies
Another note, the worker is "private" it has no exposed routes.
Also as a heads up your "Using Service Bindings" link in Workers > Triggers overview 404s.
Cloudflare Community
Service Binding doesn't work properly
Under Workers > Worker > Settings > Variables > Service Bindings I’ve added a service. But the variable remains ‘undefined’ in the worker. Also the message under Workers > Worker >Triggers > Bound Services says “There are no other Services bound to (…)”.
Have now tried
- Deleting the worker I am binding to
- Deleting the pages project
- Removing/Re-adding the bindings
No luck.
Seems to be a pages-specific issue. If I bind another worker, it shows up correctly.