Skip to content
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

TypeError: Cannot read property 'write' of null at Zlib.callback (zlib.js:499:33) #36421

Closed
KRAUS1203 opened this issue Dec 7, 2020 · 3 comments
Labels
zlib Issues and PRs related to the zlib subsystem.

Comments

@KRAUS1203
Copy link

KRAUS1203 commented Dec 7, 2020

#15625

  • Version:8.9.4
  • Platform: Linux NREXPRESS 3.10.0-693.el7.x86_64 deps: update openssl to 1.0.1j #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux (Cent OS 7.4)
  • Subsystem: zlib

What steps will reproduce the bug?

Unfortunately this bug is triggered very rarely on a production system, so I haven't been able to write short code to reproduce the issue. This has been reported earlier also in node 6.x and it was mentioned that this was caused by websocket closed in middle of things.

How often does it reproduce? Is there a required condition?

This is very rare. There is no exact condition to reproduce this issue but it occurs typically when production system is very busy.

What is the expected behavior?

If websocket has been closed in middle of writing something, process should not throw exception.

What do you see instead?

TypeError: Cannot read property 'write' of null at Zlib.callback (zlib.js:499:33)

Additional information

This issue has been reported earlier on node 6.X and it has been mentioned that it is resolved in node 8.x but looks like it is not resolved. just wanted to check what version this issue has been resolved if we upgrade node.

@targos
Copy link
Member

targos commented Dec 7, 2020

Node.js versions 6.x and 8.x are unfortunately no longer supported. I suggest you try to upgrade to a more recent version (v14.x or v12.x would be preferable, as v10.x is going to reach end of life in less than 6 months) and reopen an issue if you still experience this.

@targos targos closed this as completed Dec 7, 2020
@targos targos added the zlib Issues and PRs related to the zlib subsystem. label Dec 7, 2020
@elerocks
Copy link

I experienced exactly the same on node 12.18.1

uncaughtException: Cannot read property 'write' of null
TypeError: Cannot read property 'write' of null
    at Zlib.callback (zlib.js:499:33)

It was on a production system. Unfortunately, nothing special was happening at that time, so I am unable to reproduce the issue.

@naren0021
Copy link

I have recently experienced the exact same issue on node 14.x on production

uncaughtException: Cannot read property 'write' of null
TypeError: Cannot read property 'write' of null
    at Zlib.callback (zlib.js:499:33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
zlib Issues and PRs related to the zlib subsystem.
Projects
None yet
Development

No branches or pull requests

4 participants