Trying to upload video but getting bad request error 400.in java

java
twitter4j
android

#1

trying to upload video but getting bad request error 400

I am trying to perform a video upload in android I am getting an error 400 on the INIT method.I am using twitter4j


#2

That sounds like you’re potentially not signing the request correctly.

What version of Twitter4J are you using? I think at the moment you need to manually add a patch from Github in order to get the uploadMediaChunked method.


#3

version of Twitter4j is 4.0.2


#4

That’s a very old version of Twitter4J - the current one is 4.0.4 and the patches to add video upload support on Github are on top of the 4.0.5 snapshot.