TwitterQueryException in TweetWithMediaAsync

Mar 7, 2014 at 11:43 AM
Hi all ,i'm trying to upload a Jpeg , everytime i receive the exception TwitterQueryException , with StatusCode Forbidden and ErrorCode 189 .
I'm using version 3.0.2 , what could be wrong ?

Yannis
Coordinator
Mar 25, 2014 at 11:20 PM
Hi Yannis,

What type of query are you using? There could be several reasons. Here's some Twitter API docs on limits that might cause a Forbidden:

https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following#

Make sure you are getting all the bytes of the file. Also, there's a size limit, depending on which API you use. So look up the max size and try an image that is smaller.

@JoeMayo