Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatherproxy causes thrown exception #29

Closed
chill117 opened this issue Aug 6, 2016 · 0 comments
Closed

gatherproxy causes thrown exception #29

chill117 opened this issue Aug 6, 2016 · 0 comments
Assignees
Labels

Comments

@chill117
Copy link
Owner

chill117 commented Aug 6, 2016

cyclops24 wrote:

Today my app crash with below code adn server restarted:

W20160805-21:31:20.135(4.5)? (STDERR) /home/username/Projects/Proxy Assistant/Sources/node_modules/proxy-lists/sources/gatherproxy.js:313
W20160805-21:31:20.136(4.5)? (STDERR)         return cookie.substr(0, cookie.indexOf(';'));
W20160805-21:31:20.137(4.5)? (STDERR)                      ^
W20160805-21:31:20.137(4.5)? (STDERR) 
W20160805-21:31:20.137(4.5)? (STDERR) TypeError: Cannot read property 'substr' of undefined
W20160805-21:31:20.138(4.5)? (STDERR)     at Object.module.exports.getSessionCookie (/home/username/Projects/Proxy Assistant/Sources/node_modules/proxy-lists/sources/gatherproxy.js:313:16)
W20160805-21:31:20.138(4.5)? (STDERR)     at Request._callback (/home/username/Projects/Proxy Assistant/Sources/node_modules/proxy-lists/sources/gatherproxy.js:211:24)
W20160805-21:31:20.139(4.5)? (STDERR)     at Request.self.callback (/home/username/Projects/Proxy Assistant/Sources/node_modules/request/request.js:200:22)
W20160805-21:31:20.139(4.5)? (STDERR)     at emitTwo (events.js:87:13)
W20160805-21:31:20.139(4.5)? (STDERR)     at Request.emit (events.js:172:7)
W20160805-21:31:20.140(4.5)? (STDERR)     at Request.<anonymous> (/home/username/Projects/Proxy Assistant/Sources/node_modules/request/request.js:1067:10)
W20160805-21:31:20.140(4.5)? (STDERR)     at emitOne (events.js:82:20)
W20160805-21:31:20.140(4.5)? (STDERR)     at Request.emit (events.js:169:7)
W20160805-21:31:20.140(4.5)? (STDERR)     at IncomingMessage.<anonymous> (/home/username/Projects/Proxy Assistant/Sources/node_modules/request/request.js:988:12)
W20160805-21:31:20.141(4.5)? (STDERR)     at emitNone (events.js:72:20)
=> Exited with code: 1

I think manybe gatherproxy breaks. I think it's better to prevent server restart on error's like this or this.

@chill117 chill117 added the bug label Aug 6, 2016
@chill117 chill117 self-assigned this Aug 6, 2016
chill117 added a commit that referenced this issue Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant