Skip to content
Advertisement

tweepy error response status code 400

I’m trying to write a simple twitter bot using python and tweepy. The code is as follows:

JavaScript

I get the following error:

JavaScript

I would like some info on how to avoid this error

Advertisement

Answer

This may be a bug that emerged in the 3.2.0 release of Tweepy. See this issue opened on GitHub. In that issue, TylerGlaiel notes that api.update_status fails if called thus:

JavaScript

But works if called like so:

JavaScript

I have also found this works. I imagine a fix will be out before long.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement