satyakb / go-socket.io-redis

Redis adapter for go-socket.io
38 stars 30 forks source link

error decoding data #5

Open dtrigo opened 8 years ago

dtrigo commented 8 years ago

I have a legacy code written in JavaScript/node who I have almost migrated to Go! This program should act as a proxy to a EventListener, so the 1st program 'fires' events and the one I migrated pass the events to the 'browser'. Once this new program is connected to Redis, the events are not forwarded because this error, Could you light me up? thanks in advance!

PMessage: socket.io#* socket.io#/#sails_model_vehicles_73480:update:positions# ��emitter��type�data��positions��verb�updated�id��data��vehicle��date�2016-07-28T05:04:46.000Z�nsp�/��rooms��+sails_model_vehicles_73480:update:positions�flags� error decoding data PMessage: socket.io#* socket.io#/#sails_model_vehicles_64888:update:positions# ��emitter��type�data��positions��verb�updated�id��x�data��vehicle��x�date�2016-07-28T05:04:45.000Z�nsp�/��rooms��+sails_model_vehicles_64888:update:positions�flags� error decoding data PMessage: socket.io#* socket.io#/#sails_model_vehicles_71780:update:positions# ��emitter��type�data��positions��verb�updated�id�d�data��vehicle�d�date�2016-07-28T12:04:45.000Z�nsp�/��rooms��+sails_model_vehicles_71780:update:positions�flags� error decoding data PMessage: socket.io#* socket.io#/#sails_model_vehicles_31952:update:positions# ��emitter��type�data��positions��verb�updated�id�|Фdata��vehicle�|Фdate�2016-07-28T12:04:45.000Z�nsp�/��rooms��+sails_model_vehicles_31952:update:positions�flags� error decoding data PMessage: socket.io#* socket.io#/#sails_model_vehicles_70630:update:positions# ��emitter��type�data��positions��verb�updated�id���data��vehicle���date�2016-07-28T05:04:46.000Z�direction�nsp�/��rooms��+sails_model_vehicles_70630:update:positions�flags� error decoding data PMessage: socket.io#* socket.io#/#sails_model_vehicles_30322:update:positions# ��emitter��type�data��positions��verb�updated�id�vr�data��vehicle�vr�date�2016-07-28T07:04:45.000Z�nsp�/��rooms��+sails_model_vehicles_30322:update:positions�flags� error decoding data PMessage: socket.io#* socket.io#/#sails_model_vehicles_66851:update:positions# ��emitter��type�data��positions��verb�updated�id�#�data��vehicle�#�date�2016-07-28T12:04:45.000Z�nsp�/��rooms��+sails_model_vehicles_66851:update:positions�flags�

dtrigo commented 8 years ago

A more verbose error: error decoding data: invalid character '\u0093' looking for beginning of value PMessage: socket.io#* socket.io#/#sails_model_vehicles_71868:update:positions# ��emitter��type�data��positions��verb�updated�id���data��vehicle���date�2016-07-28T12:17:14.000Z�latitude�@E�@�longitude��!g��zone3�Estrada do Porto�speedP�nsp�/��rooms��+sails_model_vehicles_71868:update:positions�flags�