LearnBoost/socket.io — Issue #575: TypeError: Converting circular structure to JSON - when using RedisStore
Author: alessioalex
Created: 2011-10-13 00:33:37+00:00
State: open

```javascript
→ node server.js
info - socket.io started
Server started on port 8080
warn - handshake error Converting circular structure to JSON

/var/www/node_apps/chat/node_modules/socket.io/lib/stores/redis.js:103
this.pub.publish(name, this.pack({ nodeId: this.nodeId, args: args }));
^
TypeError: Converting circular structure to JSON
at Redis.stringify [as pack] (native)
at Redis.publish (/var/www/node_apps/chat/node_modules/socket.io/lib/stores/redis.js:103:31)
at Manager.handleClient (/var/www/node_apps/chat/node_modules/socket.io/lib/manager.js:644:18)
at Manager.handleUpgrade (/var/www/node_apps/chat/node_modules/socket.io/lib/manager.js:582:8)
at HTTPServer. (/var/www/node_apps/chat/node_modules/socket.io/lib/manager.js:108:10)
at HTTPServer.emit (events.js:81:20)
at Socket. (http.js:1045:14)
at Socket._onReadable (net.js:677:27)
at IOWatcher.onReadable [as callback] (net.js:177:10)
```
I was trying to achieve the reloading session from here: www.danielbaulig.de/socket-ioexpress/

It works perfectly with Socket.IO and MemoryStore, but when I use RedisStore I get that error.

Any ideas?