Skip to content

Instantly share code, notes, and snippets.

@omares
Created August 28, 2012 15:21
Show Gist options
  • Save omares/3499041 to your computer and use it in GitHub Desktop.
Save omares/3499041 to your computer and use it in GitHub Desktop.
events.js:66
throw arguments[1]; // Unhandled 'error' event
^
Error: Parse Error
at Socket.socketOnData (http.js:1366:20)
at TCP.onread (net.js:402:27)
@missinglink
Copy link

I used to get this all the time when using the node http.request function.

Setting the agent option for http.request to false (as per the documentation) solved this one for me.

Hope this helps someone :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment