delete-tweets
delete-tweets copied to clipboard
Python os.environ not pulling environment variables for api token credentials
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
I had the same problem and hardcoding the tokens solved it for me.
MacOS 10.15, Python 3.8