Receiving 500 When Retrieving Tweet Preview


#1

Hello,

We are receiving a 500 error when requesting the following tweet preview…

/1/accounts/d1q36/tweet/preview/562034666140872704

Please let me know if you need any other information.

Thanks,
Tom


#2

@tboilard: It looks like a 404 because the Tweet doesn’t exists.

$ twurl -H api.twitter.com "/1.1/statuses/show.json?id=562034666140872704" | jq
{
  "errors": [
    {
      "code": 34,
      "message": "Sorry, that page does not exist."
    }
  ]
}

#3

@tboilard: Did a bit more digging and the reason for the "Sorry, that page does not exist." error message is that the account (@handle) has been deactivated.


#4

Thank you


#5

Glad to help. Thanks, @tboilard!


#6

Curious, what is the query used to know whether the @handle has been deactivated?