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

req.emit is not a function #6

Closed
srl295 opened this issue Aug 15, 2016 · 2 comments
Closed

req.emit is not a function #6

srl295 opened this issue Aug 15, 2016 · 2 comments

Comments

@srl295
Copy link

srl295 commented Aug 15, 2016

when using pino-http after an error, I get this:

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

TypeError: req.emit is not a function
    at TLSSocket.socketCloseListener (_http_client.js:269:7)
    at emitOne (events.js:101:20)
    at TLSSocket.emit (events.js:188:7)
    at TCP._handle.close [as _onclose] (net.js:492:12)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v6.2.0

got this under v4.4.5 also … let me see if i can get a minimal code example

@mcollina
Copy link
Member

What a weird issue! That comes straight from core, can you please attach a script to reproduce?

@carbonrobot
Copy link

nodejs/node#8431

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

4 participants