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

Trying to connect chromecast, gives Buffer.concat error #73

Open
dolfje opened this issue Jul 17, 2017 · 1 comment
Open

Trying to connect chromecast, gives Buffer.concat error #73

dolfje opened this issue Jul 17, 2017 · 1 comment

Comments

@dolfje
Copy link

dolfje commented Jul 17, 2017

When I try to connect to a chromecast, I get an error about Buffer concat not being able to concat incoming messages. The code is very simple, I just connect to a chromecast by using a ip that has an chromecast. This is a reduced test which uses the mdns stack, but reduced to the following lines for this bug report:

var client = new castv2.Client()
client.connect("192.168.1.104");

The error and backtrace I get is the following:

buffer.js:326 Uncaught TypeError: "list" argument must be an Array of Buffers
    at Function.Buffer.concat (buffer.js:326)
    at PacketStreamWrapper.send (packet-stream-wrapper.js:41)
    at Client.send (client.js:128)
    at Channel.send (channel.js:34)
    at fn.Controller.send (controller.js:28)
    at fn.ConnectionController.connect (connection.js:28)
    at Client.eval (platform.js:59)
    at Object.onceWrapper (events.js:293)
    at emitNone (events.js:86)
    at Client.emit (events.js:188)

Do I do something wrong? Or is this a bug?

@oncode
Copy link

oncode commented Feb 16, 2019

I have the same issue, have you resolved it somehow?

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