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

JSON Parsing fails on empty response body #179

Closed
lyzadanger opened this issue Aug 3, 2016 · 0 comments · Fixed by #180
Closed

JSON Parsing fails on empty response body #179

lyzadanger opened this issue Aug 3, 2016 · 0 comments · Fixed by #180

Comments

@lyzadanger
Copy link

The Twitter API endpoint media/upload, when invoked with the APPEND command, returns an empty response body on success. The attempt here to parse the body:

// JSON parse error

fails, which causes the response to be in error.

Documentation on this endpoint/command is here: https://dev.twitter.com/rest/reference/post/media/upload-append

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant