This project has moved and is read-only. For the latest updates, please go here.

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 ?

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:

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.