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 (…)”.
I’ve had an issue with Service Binding too. If you bind it to a Service and then delete that Service, it remains bound and you have to delete the entire Worker to get rid of it.
I just have this problem too (and it work before)
from pages
but at web3lite
in my case it work before but after try to migrate to wrangler 3.1.0
and deployed I started to get
{
"outcome": "exception",
"scriptName": "web3lite",
"exceptions": [
{
"name": "TypeError",
"message": "Cannot read properties of undefined (reading 'fetch')",
"timestamp": 1687177721087
}
],
"logs": [],
"eventTimestamp": 1687177721085,
"event": {
"request": {
"url": "https://web3lite.foxfox.workers.dev/",
"method": "GET",
Which broken even calling worker itself directly.