Failure in deploying ratelimit - must have `namespace_id` even though it is defined in wrangler.toml

Here is my wrangler.toml
[[unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 10, period = 10 }

I get the error even though I have defined namespace_id. I get this error when I try updating the environment variables. Note: I deployed using wrangler deploy --minify src/index.ts and I'm using hono.dev

binding RATE_LIMITER of type ratelimit must have an namespace_id specified (Code: 10021)

Am I seeing an error because I already used the namespace_id previously? I assumed this and deleted my old worker project. But I still get this error.
Was this page helpful?