Rate Limit not defined on env

Hi I'm trying to add ratelimit binding to my worker but its not appearing on the env variable for some reason?
[[unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "2938"
simple = { limit = 60, period = 3600 }
[[unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "2938"
simple = { limit = 60, period = 3600 }
return Response.json({env})
return Response.json({env})
1 Reply
云
3mo ago
I would only get my other binding
{"env":{"AI":{"fetcher":{},"logs":[],"options":{},"lastRequestId":null}}}
{"env":{"AI":{"fetcher":{},"logs":[],"options":{},"lastRequestId":null}}}
ah ok its still not giving me anything
[[unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "1231"
simple = { limit = 10, period = 60 }
[[unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "1231"
simple = { limit = 10, period = 60 }
i have saved and deployed is it because im using the website? the default example wouldn't work for me either :NotLikeThis: im hated by the cloudflare gods using local wrangler works for some reason btw is it possible to get the information on how many requests allowed remain before rate limit kicks in
Want results from more Discord servers?
Add your server