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 #2241

Closed
michaelBenin opened this issue Jun 12, 2016 · 2 comments
Closed

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

michaelBenin opened this issue Jun 12, 2016 · 2 comments
Labels

Comments

@michaelBenin
Copy link

michaelBenin commented Jun 12, 2016

I'm currently scraping the web heavily with many concurrent requests.

Many time when I'm on a slow connection I will get this error:

/Users/mbenin/Desktop/some-project/node_modules/request/request.js:83
    socket._httpMessage.emit('error', error)
                       ^
TypeError: Cannot read property 'emit' of null
    at Socket.connectionErrorHandler (/Users/mbenin/Desktop/some-project/node_modules/request/request.js:83:24)
    at Socket.g (events.js:273:16)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at emitErrorNT (net.js:1246:8)
    at nextTickCallbackWith2Args (node.js:475:9)
    at process._tickDomainCallback (node.js:430:17)

I've patched that line with a check to see if that exists, which has worked. Should I make a pr?

Thanks!

@brphelps
Copy link

brphelps commented Jul 1, 2016

I believe one of these issues covers this issue: #1903 or #2028 . I would pile onto these :).

@stale
Copy link

stale bot commented Nov 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 23, 2018
@stale stale bot closed this as completed Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants