I tried to scrape a website. And I am using the library https://github.com/request/request, but I get this error:
Error: socket hang up
at createHangUpError (http.js:1476:15)
at Socket.socketOnEnd (http.js:1572:23)
at Socket.g (events.js:180:16)
at Socket.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickDomainCallback (node.js:463:13) +0ms
What is wrong here? I also tried to re-install the package, but I get same error... help is appreciated.