Skip to content

Instantly share code, notes, and snippets.

@shaver
Created October 30, 2010 23:44
Show Gist options
  • Save shaver/655888 to your computer and use it in GitHub Desktop.
Save shaver/655888 to your computer and use it in GitHub Desktop.
TypeError: Second argument should be a buffer
at Stream._writeImpl (net.js:306:14)
at Stream._writeOut (net.js:752:25)
at Stream.write (net.js:685:17)
at /usr/local/lib/node/.npm/websocket-server/1.3.52/package/lib/ws/connection.js:179:14
at Connection.<anonymous> (/usr/local/lib/node/.npm/websocket-server/1.3.52/package/lib/ws/connection.js:280:7)
at Object.callback (/home/shaver/bzsearch/src/server/websocket.js:30:10)
at RedisClient.return_reply (/usr/local/lib/node/.npm/redis/0.3.5/package/index.js:532:25)
at RedisReplyParser.<anonymous> (/usr/local/lib/node/.npm/redis/0.3.5/package/index.js:382:18)
at RedisReplyParser.emit (events.js:27:15)
at RedisReplyParser.send_reply (/usr/local/lib/node/.npm/redis/0.3.5/package/index.js:269:14)
websocket.js:30 is
conn.send(String(results));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment