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 'emit' of null #74

Closed
xloem opened this issue May 12, 2018 · 3 comments
Closed

TypeError: Cannot read property 'emit' of null #74

xloem opened this issue May 12, 2018 · 3 comments

Comments

@xloem
Copy link

xloem commented May 12, 2018

I'm getting this error on every run:

_http_client.js:277       
  req.emit('close');      
     ^                    

TypeError: Cannot read property 'emit' of null      
    at TLSSocket.socketCloseListener (_http_client.js:277:6)                                            
    at emitOne (events.js:101:20)                   
    at TLSSocket.emit (events.js:188:7)             
    at _handle.close (net.js:509:12)                
    at TCP.done [as _onclose] (_tls_wrap.js:332:7)  
@xloem
Copy link
Author

xloem commented May 12, 2018

nodejs/node#20690

@xloem
Copy link
Author

xloem commented May 12, 2018

I learned of NODE_DEBUG=http,net and got this immediately prior to the above error:

NET 5525: destroy undefined                         
NET 5525: destroy                                                                                       
NET 5525: close                                     
NET 5525: close handle                              
NET 5525: emit close      
HTTP 5525: HTTP socket close                        
NET 5525: _read           
NET 5525: _read wait for connection                 

@xloem
Copy link
Author

xloem commented Jun 7, 2018

node.js is on top of this as linked above. it's theoretically been fixed in git master.

@xloem xloem closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant