namespace is not valid

Hey

I'm trying to deploy a new worker project which just has 1 binding to a KV.

It works locally, but when I deploy to CF I get this error:

KV namespace 'opencal_api_kv' is not valid. [code: 10042]

Been banging my head for a while....

I have a wrangler.jsonc with this top level key:

  "kv_namespaces": [
    {
      "binding": "OPENCAL_KV",
      "preview_id": "opencal_api_kv",
      "id": "opencal_api_kv"
    }


I have tried manually setting it in the dashboard as well, but no change.

The KV namespace exists, I can use wrangler kv namespace list and it lists it.

Not sure what else to check?
Was this page helpful?