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 info![No description](https://cdn.answeroverflow.com/1154389940633882635/Screenshot_2023-09-21_at_10.10.09_pm.png)
![No description](https://cdn.answeroverflow.com/1154389940851982336/Screenshot_2023-09-21_at_10.09.17_pm.png)
3 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.