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

Random crash, maybe with a unfinished request #27

Open
dreignier opened this issue Nov 22, 2018 · 0 comments
Open

Random crash, maybe with a unfinished request #27

dreignier opened this issue Nov 22, 2018 · 0 comments

Comments

@dreignier
Copy link
Owner

Sometime the cgstats nodejs program crash with this stack :

/home/dreignier/cgstats/cgstats.js:190
      resolve(body.success);
                  ^

TypeError: Cannot read property 'success' of undefined
    at Request._callback (/home/dreignier/cgstats/cgstats.js:190:19)
    at Request.self.callback (/home/dreignier/cgstats/node_modules/request/request.js:198:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request.<anonymous> (/home/dreignier/cgstats/node_modules/request/request.js:1063:14)
    at emitOne (events.js:120:20)
    at Request.emit (events.js:210:7)
    at IncomingMessage.<anonymous> (/home/dreignier/cgstats/node_modules/request/request.js:1009:12)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)

The fast solution is to protect the code of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant