-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error (websocket): in callback `on-message': JSON readtable error #60
Comments
In this case, I'm assuming you are parsing JSON that comes out of the websocket layer, in the If so, it sounds like either the JSON being sent is bad or that maybe the websocket layer is dropping some bytes. Do you have a reproducible example? |
No reproducible example unfortunately, I haven’t yet picked up on what the pattern is. Last I noticed this was when I was working on some .asciidoc files. |
I'm getting a similar error when using websocket.el with atomic-chrome.el (to use Emacs to edit text from a text edit box in Chrome).
It happens when trying to edit Wikipedia articles like https://en.wikipedia.org/w/index.php?title=Kmart&action=edit using the source editor (not the visual editor, of course). I'm able to edit .js and .css files on Wikipedia without errors. It seems like it may be specific to the wikitext format. |
I'm guessing this is an error with the websocket client - note that it is an issue in the callback, and with JSON, which websocket doesn't deal with. Perhaps we're doing some wrong encoding, which maybe is possible. I haven't used atomic-chrome, but I tried it out and it seemed to not work for a different reason: it is assuming a frame is complete. In the exact article you point to, when I send it, the first frame isn't complete and I'll create a bug with them alerting them of this fact. The bug you reported may be a different bug, though. |
Every once in a while, a
*Warnings*
buffer pops up, displaying error messages such as:This is with websocket 20190621.54 from MELPA with:
GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4)
of 2019-02-03, modified by Debian
The text was updated successfully, but these errors were encountered: