Twitter app authentication error

Saw an answer in the forum for a similar question but I copy pasted my credentials and traced the same for extra spaces.I am still getting the error saying “tweepy.error.TweepError: [{‘code’: 32, ‘message’: ‘Could not authenticate you.’}]”.

Here are the screenshots.

Hi @sharanphineas,

This is definitely due to the authentication issue. You can confirm the same by referring to twitter dev documentation

Please recheck all the four keys again and make sure you have not used them interchangeably.

I have checked all the 4 keys again,i even regenerated the access token set and updated them in the code.But i am still getting the error