Skip to content
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

SyntaxError: Unexpected end of JSON input #846

Closed
huan opened this issue Oct 2, 2017 · 3 comments
Closed

SyntaxError: Unexpected end of JSON input #846

huan opened this issue Oct 2, 2017 · 3 comments
Labels

Comments

@huan
Copy link
Member

huan commented Oct 2, 2017

I got this exception when I receive/send image files just now.

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Request._callback (/home/zixia/chatie/wechaty/src/puppet-web/puppet-web.ts:565:28)
    at Request.self.callback (/home/zixia/chatie/wechaty/node_modules/request/request.js:186:22)

https://github.com/Chatie/wechaty/blob/f0c81fc074303406096f4f93bd5eead3839e9cbc/src/puppet-web/puppet-web.ts#L560-L570

I believe it is a random error because I had sent/received many image files before saw this error message.

CC @binsee

@huan huan added the bug label Oct 2, 2017
huan added a commit that referenced this issue Oct 2, 2017
@binsee
Copy link
Member

binsee commented Oct 2, 2017

Can you look at the body content?

@huan
Copy link
Member Author

huan commented Oct 2, 2017

Will post the body content to here if I could reproduce it again.

huan added a commit that referenced this issue Oct 2, 2017
@huan
Copy link
Member Author

huan commented Apr 30, 2018

Close this issue for house keeping...

@huan huan closed this as completed Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants