You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
http.js:696
if (this.output.length === 0 && this.connection._httpMessage === this) {
^
TypeError: Cannot read property '_httpMessage' of null
at ServerResponse.end (http.js:696:50)
at IncomingMessage.<anonymous> (/var/apps/server/proxy.js:42:13)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:132:23)
at Socket.ondata (http.js:1206:22)
at Socket._onReadable (net.js:677:27)
at IOWatcher.onReadable [as callback] (net.js:177:10)
Hi, this error keeps poping when I try to proxy a POST request.
How can I fix this?
response.writeHead(proxy_response.statusCode, proxy_response.headers);
proxy_response.pipe(response);
proxy_response.on('end', function () {
response.end(); // line 42, error raised here
});