KV binding not working via wrangler.toml

kind of new to this so I'm certain that I'm doing something wrong, but here's my wrangler.toml:

name = "dropshipdb-worker"
main = "worker.js"

[[d1_databases]]
binding = "DB" 
database_name = "dropshipdb" 
database_id = "40377a7c-e994-402e-a940-1d74194e70ee"

kv_namespaces = [
  { binding = "KV", id = "6340d2c1232b4b8498ad5cccd297ad6d", preview_id = "6340d2c1232b4b8498ad5cccd297ad6d" }
]


I am trying to bind a KV namespace to the KV environment variable, but it doesn't go through no matter what I do, whereas my D1 binding does.

I also tried formatting the binding like the D1 one above, it also did not work.

I am certain that the ID is correct.

Any help is appreciated!
Was this page helpful?