Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Twitter API V1.0 Error Code 411 Length Required #94
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):
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.
Thanks a lot guys, that fixed the issue for me too!
referenced this issue
Oct 27, 2012
pushed a commit
Oct 27, 2012
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