rouyng / airspotbot

twitter bot for automatically posting adsbexchange activity
GNU General Public License v3.0
5 stars 0 forks source link

tweepy.errors.Forbidden: 403 Forbidden #41

Open SOCO69420 opened 1 year ago

SOCO69420 commented 1 year ago

I need more help...tweepy is giving me an error.... Might be an easy fix...

15-May-23 13:23:11 - airspotbot - INFO: Attached Media IDs: [] 15-May-23 13:23:11 - airspotbot - INFO: Sending tweet... 15-May-23 13:23:11 - airspotbot - ERROR: Error sending tweet Traceback (most recent call last): File "/home/adsb/airspotbot/airspotbot/airspotbot.py", line 263, in tweet_spot self._client.create_tweet(text=tweet) File "/home/adsb/.local/lib/python3.10/site-packages/tweepy/client.py", line 824, in create_tweet return self._make_request( File "/home/adsb/.local/lib/python3.10/site-packages/tweepy/client.py", line 126, in _make_request response = self.request(method, route, params=request_params, File "/home/adsb/.local/lib/python3.10/site-packages/tweepy/client.py", line 99, in request raise Forbidden(response) tweepy.errors.Forbidden: 403 Forbidden Your client app is not configured with the appropriate oauth1 app permissions for this endpoint. 15-May-23 13:23:11 - airspotbot - ERROR: Attempting to re-initialize Twitter API connection 15-May-23 13:23:11 - airspotbot - INFO: Connecting to Twitter API v2 15-May-23 13:23:15 - airspotbot - INFO: Authentication OK. Connected as user XXXX 15-May-23 13:23:15 - airspotbot - INFO: Twitter API v2 client created 15-May-23 13:23:15 - airspotbot - INFO: Connecting to Twitter API v1.1 15-May-23 13:23:15 - airspotbot - INFO: Twitter consumer key: xxxx 15-May-23 13:23:15 - airspotbot - INFO: Twitter consumer secret:xxxx 15-May-23 13:23:15 - airspotbot - INFO: Twitter access token: xxxx 15-May-23 13:23:15 - airspotbot - INFO: Twitter access token secret: xxxx 15-May-23 13:23:18 - airspotbot - INFO: Authentication OK 15-May-23 13:23:18 - airspotbot - INFO: Twitter API v1.1 client created