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

Response undefined #14

Open
etherealite opened this issue Feb 10, 2014 · 1 comment
Open

Response undefined #14

etherealite opened this issue Feb 10, 2014 · 1 comment

Comments

@etherealite
Copy link

When running the example.js I have the same issue as mentioned in the icolor fork: https://github.com/iColor/league-node/issues/2

~/node-lol-client$ node example.js
Logging in..

/home/etherealite/node-lol-client/lol-client.js:114
            for (var i=0; i<response.tickers.length; i++){
                                            ^
TypeError: Cannot read property 'length' of undefined
    at /home/etherealite/node-lol-client/lol-client.js:114:45
    at IncomingMessage.<anonymous> (/home/etherealite/node-lol-client/lib/login-queue.js:19:16)
    at IncomingMessage.EventEmitter.emit (events.js:95:17)
    at IncomingMessage.<anonymous> (_stream_readable.js:746:14)
    at IncomingMessage.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at IncomingMessage.Readable.push (_stream_readable.js:127:10)
    at HTTPParser.parserOnBody [as onBody] (http.js:142:22)
```'

Node version v0.10.25
@johnttan
Copy link
Contributor

Have you tried updating the client version string to the latest client version?
In the options JSON.

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

2 participants