koenrh / delete-tweets

Delete tweets from your timeline.
ISC License
792 stars 107 forks source link

Python os.environ not pulling environment variables for api token credentials #101

Open nihirisuto opened 3 years ago

nihirisuto commented 3 years ago

Seen this issue a few times and I double checked/verified creds were inputted right using the export VARIABLE="<token/secret>" and verified they were there with export -p

Yielded the [215] error 'Bad authentication data'. Dug through the python script and replaced the os.environ calls with direct strings of the tokens/secrets and it worked.

System is a Debian GCloud VM Instance Python 3.7

kuthulhu commented 3 years ago

I had the same problem and hardcoding the tokens solved it for me.

MacOS 10.15, Python 3.8