Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: same name for the KV and Queue bindings generates internal server error (10002) #2893

Open
kika opened this issue Mar 13, 2023 · 3 comments · May be fixed by #5737
Open

🐛 BUG: same name for the KV and Queue bindings generates internal server error (10002) #2893

kika opened this issue Mar 13, 2023 · 3 comments · May be fixed by #5737
Labels
bug Something that isn't working pages Relating to Pages

Comments

@kika
Copy link

kika commented Mar 13, 2023

Which Cloudflare product(s) does this pertain to?

Queues

What version of Wrangler are you using?

2.12.2

What operating system are you using?

Mac

Describe the Bug

kv_namespaces = [
    { binding = "data", id = "xxxxxxxxx" }
]

[[queues.producers]]
  queue = "data"
  binding = "data"

produces

✘ [ERROR] A request to the Cloudflare API (/accounts/xxxxxxx/workers/scripts/zzzzzz) failed.

  workers.api.error.internal_server [code: 10002]

renaming binding to anything else fixes it. If namespaces are separated between KV and Queues it's a bug in the API, otherwise it's a bug in wrangler, which should (probably?) validate this.

@kika kika added the bug Something that isn't working label Mar 13, 2023
@kika kika changed the title 🐛 BUG: same name for the queue and its binding generates internal server error (10002) 🐛 BUG: same name for the KV and Queue bindings generates internal server error (10002) Mar 13, 2023
@jspspike
Copy link
Contributor

I don't believe bindings should be able to use the same name, I will create an internal ticket to improve the api error response and leave this issue open as an enhancement to validate binding names

@biodranik
Copy link

We hit the same issue after migrating from Wrangler 2.19.0 to 3.1.1, without any bindings in the wrangler.toml (but our worker uses static website assets):
https://github.com/organicmaps/url-processor/actions/runs/5466497130/jobs/9951505713

@gafitescu
Copy link

On my end the problem was that I assign the KV to worker in Cloudflare as well as on the wrangler.toml

@penalosa penalosa linked a pull request May 1, 2024 that will close this issue
9 tasks
@penalosa penalosa linked a pull request May 1, 2024 that will close this issue
9 tasks
@penalosa penalosa added the pages Relating to Pages label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working pages Relating to Pages
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

6 participants