You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brief Description of the Bug
rscData does not serialize/deserialize properly since it is a JS Buffer object
Severity
Major
Frequency of Occurrence
Always
Steps to Reproduce
Provide detailed steps to reproduce the behavior, including any specific conditions or configurations where the bug occurs:
Implement SSG and ISR in Next 14+
Implement @neshca/cache-handler/redis-stack
Notice that RSC requests fail due to streams not being created because rscData gets deserialized as a
{type: 'Buffer',data: [/* byte array */]}
Note: When I updated the implementation to set value.rscData = Buffer.from(value.rscData.data) the problem was resolved. However, the rss of my node process starting to increase over time, indicating a memory leak. I'm not sure why the Buffers don't get released.
Expected vs. Actual Behavior
I expect an out-of-the box implementation to handle RSC requests and caching
Screenshots/Logs
Let me know if this report is not clear enough and I can provide logs and whatnot.
Environment:
OS: client is macOS using Chrome, server is Ubuntu 22.x LTS using Node 20.x LTS
Node.js version: v20.17.0
@neshca/cache-handler version: 1.6.1
next version: 15.0.0-canary
Attempted Solutions or Workarounds value.rscData = Buffer.from(value.rscData.data) which works. However, there seems to be a memory leak caused by the Buffer objects not being released.
Impact of the Bug
RSC requests fail with HTTP 500
The text was updated successfully, but these errors were encountered:
Brief Description of the Bug
rscData does not serialize/deserialize properly since it is a JS Buffer object
Severity
Major
Frequency of Occurrence
Always
Steps to Reproduce
Provide detailed steps to reproduce the behavior, including any specific conditions or configurations where the bug occurs:
Note: When I updated the implementation to set
value.rscData = Buffer.from(value.rscData.data)
the problem was resolved. However, the rss of my node process starting to increase over time, indicating a memory leak. I'm not sure why theBuffer
s don't get released.Expected vs. Actual Behavior
I expect an out-of-the box implementation to handle RSC requests and caching
Screenshots/Logs
Let me know if this report is not clear enough and I can provide logs and whatnot.
Environment:
@neshca/cache-handler
version: 1.6.1next
version: 15.0.0-canaryAttempted Solutions or Workarounds
value.rscData = Buffer.from(value.rscData.data)
which works. However, there seems to be a memory leak caused by the Buffer objects not being released.Impact of the Bug
RSC requests fail with HTTP 500
The text was updated successfully, but these errors were encountered: