upstash/ratelimit-js

blockUntilReady and cf workers

Closed this issue · 8 comments

blockUntilReady relies on Date.now, but in cf worker env, Date.now does not reliably progress as in nodeJS or browser env.

https://developers.cloudflare.com/workers/runtime-apis/web-standards/

Maybe this could get added to docs, it might safe a few people from headaches.
Bildschirmfoto 2023-11-20 um 15 23 04

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

Is this going to be addressed eventually? This is a serious concern that most users will probably not be aware of.

We’ll see what we can do and if we can’t find a good solution, we’ll document in our docs. Sorry for late reply.

Issue is finally addressed here in the docs: upstash/docs#121

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

This issue was closed because it has been stalled for 30 days with no activity.