@Cloudflare (Server Owner) can anybody help, please?
@Cloudflare (Server Owner) can anybody help, please?

wrangler.toml?env.MY_BUCKET not defined
addEventListener, it's service worker and bindings are globals. If you have request and env... not ctx
preview_bucket_name field as well, and create a separate testing bucket or assign it to the same to ignore it, it'll tell you on startup though if you're on a version that requires itput causes this errorwrangler.tomlname = "dark-voice-8281"
main = "src/index.js"
compatibility_date = "2023-10-10"
account_id = "my-account-id"
workers_dev = true
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Note: Use secrets to store sensitive data.
# Docs: https://developers.cloudflare.com/workers/platform/environment-variables
# [vars]
# MY_VARIABLE = "production_value"
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
# [[kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
# Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
# [[r2_buckets]]
# binding = "EXTRACTOR_BINDING"
# bucket_name = "extractor"env.MY_BUCKET "exceptions": [
{
"name": "TypeError",
"message": "Cannot read properties of undefined (reading 'get')",
"timestamp": 1697482002476
}
],const object = await env.MY_BUCKET.get(key);addEventListenerrequestpreview_bucket_nameputUncaught (in response) TypeError: This ReadableStream is disturbed.export default {
fetch(request, env, ctx) {let reader = request.body.getReader()
console.log({reader})
let pending = true;
while (pending) {
let foo = await reader.read();
console.log(foo)
if (foo.done) {
pending = false
}
}
reader.releaseLock()
await env.EXTRACTOR_BINDING.put(key, request.body);
return new Response(`Put ${key} successfully! with count of ${count}`);