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

TypeError: First argument needs to be a number, array or string. #86

Open
philhaz opened this issue May 18, 2014 · 0 comments
Open

TypeError: First argument needs to be a number, array or string. #86

philhaz opened this issue May 18, 2014 · 0 comments

Comments

@philhaz
Copy link

philhaz commented May 18, 2014

I'm seeing this reproducible error when fetching suggestions for certain tracks.

I'm not too experienced when it comes to streams, so if I'm being dumb just let me know.

spotify.similar('spotify:track:7I67h6FgRenMQ90URnoycZ', function (err, similar) {
    if (err) return console.log(err), false;

    // DO STUFF
});
TypeError: First argument needs to be a number, array or string.
    at new Buffer (buffer.js:188:15)
    at Spotify.<anonymous> (/home/pi/apps/anon/node_modules/spotify-web/lib/spotify.js:649:46)
    at fn (/home/pi/apps/anon/node_modules/spotify-web/lib/spotify.js:396:10)
    at Spotify._onmessage (/home/pi/apps/anon/node_modules/spotify-web/lib/spotify.js:412:5)
    at WebSocket.EventEmitter.emit (events.js:98:17)
    at Receiver.self._receiver.ontext (/home/pi/apps/anon/node_modules/spotify-web/node_modules/ws/lib/WebSocket.js:697:10)
    at Receiver.opcodes.1.finish (/home/pi/apps/anon/node_modules/spotify-web/node_modules/ws/lib/Receiver.js:397:14)
    at Receiver.expectHandler (/home/pi/apps/anon/node_modules/spotify-web/node_modules/ws/lib/Receiver.js:384:31)
    at Receiver.add (/home/pi/apps/anon/node_modules/spotify-web/node_modules/ws/lib/Receiver.js:93:24)
    at CleartextStream.firstHandler (/home/pi/apps/anon/node_modules/spotify-web/node_modules/ws/lib/WebSocket.js:678:22)
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