Skip to content

Instantly share code, notes, and snippets.

@MattRix
Created May 11, 2011 20:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattRix/967295 to your computer and use it in GitHub Desktop.
Save MattRix/967295 to your computer and use it in GitHub Desktop.
Error with Socket.io and Node.js
Initializing client with transport "websocket"
node: ../src/node.cc:1210: ssize_t node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding): Assertion `b[1] == 0' failed.
@tarnfeld
Copy link

I'm having the exact same problem? Did you find a solution? :)

@MattRix
Copy link
Author

MattRix commented May 12, 2011

Yep, the problem was that I was using the Node.js trunk, which had a bug in it. Using a tag (0.4.7) fixed the problem.

@tarnfeld
Copy link

tarnfeld commented May 12, 2011 via email

@tarnfeld
Copy link

tarnfeld commented May 12, 2011 via email

@MattRix
Copy link
Author

MattRix commented May 12, 2011

yep, you can do a make uninstall first if you want, although I don't think it matters.

@tarnfeld
Copy link

tarnfeld commented May 12, 2011 via email

@MattRix
Copy link
Author

MattRix commented May 12, 2011

So you're sure you switched to 0.4.7, right? And then you have to recompile the whole thing again from there (./configure, make, make install).

Maybe you should do a make uninstall first, I guess. I think in my case I actually deleted the node folder and checked out everything from scratch.

@tarnfeld
Copy link

tarnfeld commented May 12, 2011 via email

@MattRix
Copy link
Author

MattRix commented May 12, 2011

Awesome! Glad it worked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment