wuchengwei / node-wget

A download tool with support for http/https proxy.
MIT License
64 stars 38 forks source link

TypeError: Cannot call method 'trim' of null #10

Open tuncaybahadir opened 9 years ago

tuncaybahadir commented 9 years ago

Hello, Sometimes I get the following error when downloading content. What can I do about this? After receiving the error in addition it does not give error when I try to download the content again.

SocketF061-15 (err): Missing error handler on socket. SocketF061-15 (err): TypeError: Cannot call method 'trim' of null SocketF061-15 (err): at cleanProtocol (/root/node_modules/wget/lib/wget.js:154:16) SocketF061-15 (err): at Object.download (/root/node_modules/wget/lib/wget.js:21:23) SocketF061-15 (err): at Object.selFing.downloadVideo (/root/nodejs/core/indexSocket.js:102:23) SocketF061-15 (err): at Socket. (/root/nodejs/socket/socketRelease.js:180:13) SocketF061-15 (err): at Socket.EventEmitter.emit (events.js:106:17) SocketF061-15 (err): at Socket.onevent (/root/node_modules/socket.io/lib/socket.js:330:8) SocketF061-15 (err): at Socket.onpacket (/root/node_modules/socket.io/lib/socket.js:290:12) SocketF061-15 (err): at Client.ondecoded (/root/node_modules/socket.io/lib/client.js:193:14) SocketF061-15 (err): at Decoder.Emitter.emit (/root/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20) SocketF061-15 (err): at Decoder.add (/root/node_modules/socket.io/node_modules/socket.io-parser/index.js:247:12)

devanp92 commented 9 years ago

I am having the same issue. Has there been a workaround for this issue?

tuncaybahadir commented 8 years ago

Unfortunately, the same way I receive an error

tuncaybahadir commented 8 years ago

Does anyone know anything about it ?