{"action":"created","issue":{"url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server/issues/19","repository_url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server","labels_url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server/issues/19/comments","events_url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server/issues/19/events","html_url":"https://github.com/mikemintz/rethinkdb-websocket-server/issues/19","id":163923946,"number":19,"title":"Error: Uncaught SyntaxError: Unexpected token in JSON","user":{"login":"coffenbacher","id":245867,"avatar_url":"https://avatars.githubusercontent.com/u/245867?v=3","gravatar_id":"","url":"https://api.github.com/users/coffenbacher","html_url":"https://github.com/coffenbacher","followers_url":"https://api.github.com/users/coffenbacher/followers","following_url":"https://api.github.com/users/coffenbacher/following{/other_user}","gists_url":"https://api.github.com/users/coffenbacher/gists{/gist_id}","starred_url":"https://api.github.com/users/coffenbacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffenbacher/subscriptions","organizations_url":"https://api.github.com/users/coffenbacher/orgs","repos_url":"https://api.github.com/users/coffenbacher/repos","events_url":"https://api.github.com/users/coffenbacher/events{/privacy}","received_events_url":"https://api.github.com/users/coffenbacher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-05T19:10:51Z","updated_at":"2016-11-02T14:29:37Z","closed_at":null,"body":"We've been experiencing a weird bug off and on over the past few months, and lately it seems to be getting worse. \n- Symptom: a syntax error in JSON parsing on the client. It's like part of the JSON message gets dropped or mangled in transmission. For example:\n\n```\nError: Uncaught SyntaxError: Unexpected token , in JSON at position 289587\n```\n- Clients: Chrome on OS X and Windows. It seems to occur **much** more frequently on OS X, and possibly not at all on Windows (we haven't been able to repro on Windows)\n- Versions: rethinkdb-websocket-server v0.5.1, react-rethinkdb v0.5.1\n- It seems to occur much more frequently (possibly exclusively) when the returned object is big / complicated. \n- Sometimes it happens 50% of the time for big objects, sometimes 0%, sometimes 100% of the time\n- We're using wss://\n\nI'm going to keep looking into this but I don't have many ideas about where to start. Does anything jump out?\n"},"comment":{"url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server/issues/comments/257881057","html_url":"https://github.com/mikemintz/rethinkdb-websocket-server/issues/19#issuecomment-257881057","issue_url":"https://api.github.com/repos/mikemintz/rethinkdb-websocket-server/issues/19","id":257881057,"user":{"login":"JerryGreen","id":13215662,"avatar_url":"https://avatars.githubusercontent.com/u/13215662?v=3","gravatar_id":"","url":"https://api.github.com/users/JerryGreen","html_url":"https://github.com/JerryGreen","followers_url":"https://api.github.com/users/JerryGreen/followers","following_url":"https://api.github.com/users/JerryGreen/following{/other_user}","gists_url":"https://api.github.com/users/JerryGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/JerryGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JerryGreen/subscriptions","organizations_url":"https://api.github.com/users/JerryGreen/orgs","repos_url":"https://api.github.com/users/JerryGreen/repos","events_url":"https://api.github.com/users/JerryGreen/events{/privacy}","received_events_url":"https://api.github.com/users/JerryGreen/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T14:29:37Z","updated_at":"2016-11-02T14:29:37Z","body":"Same here.\r\n\r\nJS Error: `Uncaught SyntaxError: Unexpected token \u0001 in JSON at position 1179583`\r\n\r\nThe json is invalid:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/19625524/19733319/14c3ae60-9bbd-11e6-9be6-4ae974d2274b.png)\r\n\r\nLooks like it's some special characters' fault (� sign, seriously?).\r\n\r\nNo idea how to fix this. This present on pretty big data only (>10 mb). However, you have ~10% chance to get the data correctly. Otherwise, you need to refresh the page to request it again."}}
{"actor":{"display_login":"JerryGreen"}}