Cannot read properties of r2
I am trying to interact with r2 bucket from a worker.
But I get this error
Yes, I have already bind the bucket inside
wrangler.toml
file9 Replies
Do you have a repo I can take a look at?
Sorry the repo is private.
Let me try to create a bare-minimum repo.
GitHub
GitHub - mittalyashu/cf-worker-r2-repo
Contribute to mittalyashu/cf-worker-r2-repo development by creating an account on GitHub.
Try this:
I also tried looking about this in the docs, but couldn't find it documented anywhere.
When we run a worker in dev mode.
I know that for KV a local instance is created, but what about r2?
Thanks this worked, I no longer get that error 🙏
Yes, in the
.wrangler
folderThanks
Can you please, share me the docs link.
Where I can learn more about the specification order for
wrangler.toml
to work properly if I add more things?That's just TOML being weird: https://toml.io/en/v1.0.0
If it makes it easier, you can also use
wrangler.json
:lul: