centrifugo: Uncaught SyntaxError: Unexpected end of JSON input
Nothing has changed in my code since upgrading from v1.4.5 to v1.5.0, however, I’m getting this syntax error when sending message between clients:
The JSON is being broken somehow:
{
"method": "join",
"body": {
"channel": "testsite:575e286967c52:sim1",
"data": {
"default_info": {
"user_data": {
"id": 3,
"username": "sim1",
"rank": 100,
"zip": "56894",
"href": "http://www.testsite.com/users/sim1",
"last_login_at": "1467261409"
}
},
"user": "3",
"client": "855cdfc3-5dd6-4af4-b005-fc12653f780 //here string is not terminated and missing '}'
This prevents my messages from being sent.
for my app I’m using: front-end: centrifuge-js back-end: centrifugo-1.5.0-linux-amd64
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (10 by maintainers)
Give me until the end of the week to update this with more code. Sorry I’ve been quite busy. This Sunday at the latest.