Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a trace so we can track down where the empty response occurred in…

… our applications.


As seeing this

    26 Apr 21:38:06 - Client 9508768464438617 connected
    26 Apr 21:43:24 - Initializing client with transport "websocket"
    26 Apr 21:43:24 - Client 8368203134741634 connected
    This type of response MUST NOT have a body. Ignoring write() calls.
    This type of response MUST NOT have a body. Ignoring write() calls.
    26 Apr 21:45:08 - Initializing client with transport "websocket"

in your log doesn't really help.
  • Loading branch information...
commit cdb342f1f961f969f8495e7ff2894ad177316e11 1 parent a2328dc
@3rd-Eden authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/http.js
View
1  lib/http.js
@@ -591,6 +591,7 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
}
if (!this._hasBody) {
+ console.trace();
console.error('This type of response MUST NOT have a body. ' +
'Ignoring write() calls.');
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.