Unable to get KV values from namespace while running wrangler dev

I created a kv namespace with the wrangler cli and put the id and binding in my wrangler.toml. Now when I call env.<BINDING>.get(<KEY>) I always get a null response. Though, when I try to get that same key from the same kv namespace using the Wrangler CLI I get the correct value. Has anyone run into this same issue?
Screenshot_2023-11-11_at_3.20.11_PM.png
Screenshot_2023-11-11_at_3.20.27_PM.png
Was this page helpful?