-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Twitter::Error: 757: unexpected token at '' #547
Comments
Try client.update "test" |
Sure, actually I had tried that as well.
It happens no matter what I do:
|
It looks like the Twitter API is returning invalid JSON. Can you try making the same request with |
I had to set up a different account, but I'm not seeing any different results.
vs
I then dumped the output from twurl into a file and attempted to parse it in ruby, which worked fine. At a bit of a loss. Any ideas? |
No, that’s quite odd. Can you try running the same script on a different computer? |
Yeah, it fails in multiple environments, including linux servers. I'm going on the assumption it's a library we have causing the issue; will investigate further. |
I am getting the same error! #548 |
I think this has something do with this issue #473 - the author suggests that the response is GZipped... checking into that |
YES! The response is zipped... writing a pull request now |
Yeah, as the other issue said, the issue was right-http, which I have now terminated with extreme prejudiced. Thanks for the help! |
I've recently upgraded to rails 4 and twitter 5.8.0 and am seeing strange parsing errors:
I'm not sure what could be causing this; as you can see it's a plain string with nothing weird. Is this a known issue?
The text was updated successfully, but these errors were encountered: