webtty icon indicating copy to clipboard operation
webtty copied to clipboard

unexpected end of JSON input

Open dayblox opened this issue 6 years ago • 4 comments

When entering the response of the client, I get 'Quitting with an unexpected error: "unexpected end of JSON input"'.

dayblox avatar Nov 14 '18 13:11 dayblox

I usually get that error when I paste in the response incorrectly. Can you paste your response here?

maxmcd avatar Nov 14 '18 13:11 maxmcd

[redacted]

dayblox avatar Nov 14 '18 13:11 dayblox

The response seems to always be about 40 characters shorter.

dayblox avatar Nov 14 '18 13:11 dayblox

Hmm, its working for me. 897-40 is 857. I've run into issues with the terminal stdin buffer, which is 1024 bytes in my terminal, but I'm not sure why 857 wouldn't work. I've been working on ways to further compress the byte size of the message, maybe those fixes will solve this.

maxmcd avatar Nov 14 '18 14:11 maxmcd