-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partial response of 16KB with redis cache. #24
Comments
@ankiit Have you found any workaround for this issue? |
I'm using the older version of redis-stream. |
@ankiit I seem to have solved my issue. When calling redis.createClient I had to add the detect_buffers: true option. According to the redis-rstream readme under usage:
|
This worked for me until I tried to use a transform. I was only getting 16kb back from redis, I enabled detect_buffers and I get the full response back. Now when I try to use the tranform, the chunk is only 16kb. edit: I figured it out. I looked at the markdown example a bit closer and noticed they were using object mode and realized I needed to add the chunks together. |
I've started facing following error for api response size > 16KB when using redis as a cache. And it ends up returning partial data of 16KB.
with following log.
Error: stream.push() after EOF at readableAddChunk (_stream_readable.js:156:17) at RedisRStream.Readable.push (_stream_readable.js:134:10)
The text was updated successfully, but these errors were encountered: