err:unkey:data:ratelimit_namespace_not_foundExample response
Likely causes
- You set an override before the namespace existed. Namespaces are created the first time you call
ratelimit.limitorratelimit.multiLimitwith a new name. The override endpoints (ratelimit.setOverride,ratelimit.getOverride,ratelimit.listOverrides,ratelimit.deleteOverride) don’t create them. - The name has a typo. Names are matched exactly.
- The namespace was deleted.
ratelimit.setOverridereturns this 404 for it, whileratelimit.limitreturnserr:unkey:data:ratelimit_namespace_gone.
How to fix
- Call
ratelimit.limitwith the namespace once to create it, then set overrides. - Check the spelling. If you pass an ID, use the
rlns_ID from the dashboard.
Related errors
err:unkey:data:ratelimit_namespace_gone: the namespace existed and was deleted.err:unkey:data:ratelimit_override_not_found: the namespace exists but the override doesn’t.