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
Is someone can help me understand with this error happens when i make request using nodejs package request? What does this error mean?
AssertionError: 20 == 0
at ClientRequest.onConnect (/home/carmod/www/avitoparser/bundle/programs/server/npm/node_modules/tunnel-agent/index.js:159:14)
at ClientRequest.g (events.js:260:16)
at emitThree (events.js:97:13)
at ClientRequest.emit (events.js:175:7)
at Socket.socketOnData (_http_client.js:354:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
Reacted by Denis Perov, Zhiheng Yi, Сергей Савельев, DerpyDashie, Keyi Chen, Artem, Vasek Codey Vlcek, Ivan and Ed Puhs
@gvuyk thank you so much! I was able to work around the issue with that. This exception was going uncaught from the main request module and randomly crashing my entire application @.@
AssertionError: 120 == 0
at ClientRequest.onConnect (/home/meteor/ACWebService/bundle/programs/server/npm/node_modules/tunnel-agent/index.js:160:14)
at Object.onceWrapper (events.js:293:19)
at emitThree (events.js:116:13)
at ClientRequest.emit (events.js:197:7)
at Socket.socketOnData (_http_client.js:443:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at TCP.onread (net.js:560:20)
It is another bug actually, you guys could use my repo instead, it is forked from this repo, and fixed two critical bugs. if you don't know how to use it, refer to npm-shrinkwrap.json
This repo seems dead and I'm considering how to solve it. Maybe @mikeal should transfer this repo.
In my case Avast (security software running on my development computer) was causing the error, specifically the Web Shield feature. Adding our proxy server to the Web Shield "Excluded servers" list made the error go away.
Activity
seanc commentedon Mar 13, 2017
having the same issue
imajus commentedon Mar 17, 2017
Same problem here.
gvuyk commentedon Mar 31, 2017
In my case it seems to happen when an http proxy is used to connect to some site with https
kevinstubbs commentedon Apr 5, 2017
@gvuyk thank you so much! I was able to work around the issue with that. This exception was going uncaught from the main request module and randomly crashing my entire application @.@
timbowhite commentedon Apr 25, 2017
The
asserton the head variable makes this an uncatchable error. Why is it necessary?phibya commentedon Apr 28, 2017
Same issue here
jancurn commentedon Feb 20, 2018
+1
Woor commentedon Mar 13, 2018
This package seems to be unmaintained/dead...
mike442144 commentedon Mar 15, 2018
It is another bug actually, you guys could use my repo instead, it is forked from this repo, and fixed two critical bugs. if you don't know how to use it, refer to npm-shrinkwrap.json
This repo seems dead and I'm considering how to solve it. Maybe @mikeal should transfer this repo.
dryhumor commentedon Apr 27, 2018
In my case Avast (security software running on my development computer) was causing the error, specifically the Web Shield feature. Adding our proxy server to the Web Shield "Excluded servers" list made the error go away.
DanNi0130 commentedon Jul 4, 2018
In case anyone finds this later, as @mike442144 said, you can fix this problem by using his module with this command:
npm install --save git+https://git@github.com/bda-research/tunnel-agent.git
SacDin commentedon Apr 8, 2020
+1
same issue while using http proxy with https url