delete-tweets icon indicating copy to clipboard operation
delete-tweets copied to clipboard

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

Open chris-larsen opened this issue 3 years ago • 1 comments

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

chris-larsen avatar Jan 24 '21 01:01 chris-larsen

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

MacOS 10.15, Python 3.8

kuthulhu avatar Feb 02 '21 09:02 kuthulhu