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

running demo.js Error, TypeError: Cannot read property 'statusCode' of undefined #51

Open
jason-wei1127 opened this issue Nov 10, 2016 · 0 comments

Comments

@jason-wei1127
Copy link

jason-wei1127 commented Nov 10, 2016

$ node demo.js user pw
/data/app/testhubot/node_modules/skyweb/dist/src/login.js:108
if (!error && response.statusCode === 201 || response.statusCode === 301) {
__________________________________________________________________^

TypeError: Cannot read property 'statusCode' of undefined
at Request._callback (/data/app/testhubot/node_modules/skyweb/dist/src/login.js:108:66)
at self.callback (/data/app/testhubot/node_modules/request/request.js:187:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/data/app/testhubot/node_modules/request/request.js:813:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)

my Nodejs versin is v7.0.0,where is do it.

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