Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTwitter API V1.0 Error Code 411 Length Required #94
Comments
This comment has been minimized.
This comment has been minimized.
oosswwaalldd
commented
Oct 27, 2012
|
Ok, I just fixed the issue by adding a second "dummy" parameter to the API call
Is there anything that need to be fixed in the lib besides this? Thanks! |
This comment has been minimized.
This comment has been minimized.
pavemen
commented
Oct 27, 2012
|
i think the Twitter API updated and has a bug. Obviously your API call had content in the parameter list and adding a minor bit of data made it work. Just like my issue I posted earlier, add enough data to get past whatever bug they introduced. Their byte count is off by one when taking in the inputs I bet. edit: not sure if this is actually true since my status updated work fine via 1.1/statuses/update with the POST parameters I pass. No missing content that I have seen. |
This comment has been minimized.
This comment has been minimized.
oosswwaalldd
commented
Oct 27, 2012
|
Yes Pavement i added the second dummy param after reading your post. Thanks! |
This comment has been minimized.
This comment has been minimized.
neave
commented
Oct 27, 2012
|
Confirmed. I have this error 411 reported using v1.1 API too. The fix from @oosswwaalldd does this trick, thanks! Does anyone know if this bug has been filed on Twitter's API site? https://dev.twitter.com/issues I'd like to up-vote. |
This comment has been minimized.
This comment has been minimized.
MattFyot
commented
Oct 27, 2012
|
Thanks a lot guys, that fixed the issue for me too! |
This comment has been minimized.
This comment has been minimized.
rasa
commented
Oct 27, 2012
|
When I changed line 625 of
to
the problem went away. |
This comment has been minimized.
This comment has been minimized.
rasa
commented
Oct 27, 2012
|
I filed a bug here: https://dev.twitter.com/issues/643 |
This comment has been minimized.
This comment has been minimized.
pavemen
commented
Oct 27, 2012
|
@MattFyot this effected my statuses/destroy call in API v1.1 |
This comment has been minimized.
This comment has been minimized.
oosswwaalldd
commented
Oct 27, 2012
|
I think @rasa solution is way more elegant than mine!, is there any way to involve @themattharris in this conversation so he can give the final and proper solution? Thanks! |
This comment has been minimized.
This comment has been minimized.
tommoor
commented
Oct 27, 2012
|
We found the same issue last night, around 14hours ago and implemented the same fix as @rasa - this seems to have completely resolved the problem. |
themattharris
referenced this issue
Oct 27, 2012
Closed
Twitter REST API v1.1 appears to require non-empty Content-Length on POST #93
This comment has been minimized.
This comment has been minimized.
|
hey guys, |
pushed a commit
that referenced
this issue
Oct 27, 2012
This comment has been minimized.
This comment has been minimized.
|
implemented the same '0' fix as discussed by you guys above. so v 0.7.1 should fix the issue.
and requires this to fix:
but i'll close this out from tmhOAuth and instead follow up on https://dev.twitter.com/issues/643 |
oosswwaalldd commentedOct 27, 2012
Hi Matt,
I am getting error code 411 "Length Required" when calling this API to start the Auth Dance:
This worked for me until today, what should I fix here? I 100% sure is a change in Twitter platform I dont know. I am using the latest version of thematharris lib (0.7.0) and still on API V1.0
Here the response array(there are some ***** for sec reasons):