-
Notifications
You must be signed in to change notification settings - Fork 488
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
Exception error with msgpack #88
Comments
Have you solved the problem? After upgrading node to 4.2, I'm getting similar errors. I have downgraded socket.io to 1.36, redis to 1.0. Adding Tried changing the dependencies to msgpack-js-v5 suggested in the last post but that isn't working.
|
@stonecold123 , check #17 comments. change version is work fine. |
Not any error when I use default setting and make sure 2 node server had the same version ORr using version : "1.0.0" 👍 |
I want to know the default setting value. I've set this versions in packages.js. const server = require('http').createServer(app),
io = require('socket.io')(server),
adapter = require('socket.io-redis');
const pub = require('./app/utils/RedisUtil').createClient();
const sub = require('./app/utils/RedisUtil').createClient();
io.adapter(adapter({ pubClient: pub, subClient: sub }));
|
I had exception error when using "socket.io": "1.3.7", "socket.io-redis": "0.2.0", nodejsV4
My config:
var pub = redis(socket_redis.port, socket_redis.host);
var sub = redis(socket_redis.port, socket_redis.host, {
return_buffers: true
});
Error: 367 trailing bytes
at Object.decode (/var/www/api/node_modules/msgpack-js/msgpack.js:200:47)
at Redis.onmessage (/var/www/api/node_modules/socket.io-redis/index.js:93:24)
at emitTwo (events.js:87:13)
at RedisClient.emit (events.js:172:7)
at RedisClient.return_reply (/var/www/api/node_modules/redis/index.js:618:22)
at /var/www/ibooknail-api/node_modules/redis/index.js:309:18
at doNTCallback0 (node.js:419:9)
at process._tickDomainCallback (node.js:389:13)
The text was updated successfully, but these errors were encountered: