Hey folks Heavy Cloudflare Workers user
Hey folks! Heavy Cloudflare Workers user here, and new Queues user - great to meet you all 👋
I'm struggling to bind a queue to a worker - specifically I can't get the binding to show up in the
env
argument in the fetch
default exported function.10 Replies
Here's my wrangler.toml file:
what wrangler version are you on? @jeremynevans
⛅️ wrangler 2.8.1
Here's my worker:
The console log prints out
{TEST_VAR: "TEST_VALUE"}
so the regular env variable is there but not the queuedid you create the queue on the dashboard?
I created it in wrangler (but have tried modifying it using the dashboard too)
Both bindings show up on the dashboard
Whenever you send a message to the queue does it work? Maybe it just doesnt show in the console.log 🤷
Sadly not, I get:
hmm im not really sure it looks correct
Oh interesting - when I try it outside the dashboard sandbox environment it works! So it's just inside the Quick Edit sandbox that it doesn't have the binding.
Thanks anyway for your help!