Closed sgrodzicki closed 2 weeks ago
Hey @sgrodzicki,
This looks like an error which occurs in the latest release when enableProtection: true
.
After some investigation, I think this is caused by auto pipelining in redis client. You should be able to address the issue by disabling it:
const redis = Redis.fromEnv({ enableAutoPipelining: false });
In the meantime, we will investigate why this is the case.
Hi @sgrodzicki,
sorry for the late reply, we released @upstash/redis v1.34.3, which should address this issue. You should be able to upgrade to the latest redis version and create a redis client without { enableAutoPipelining: false }
Closing the issue since the error was addressed.
While running the following script (backed by Upstash Redis) I'm getting a
NOSCRIPT
error on a flushed Redis instance (SCRIPT FLUSH
):I'm aware of the fallback mechanism, so it might be the second
evalsha
call causing it:https://github.com/upstash/ratelimit-js/blob/19011929b8b80e92dae4c227300d1a54e8a4b09c/src/hash.ts#L21-L38
Redis log (
MONITOR
) looks like this: