Plash bug (just windows i imagine), when I'm reading from plash.env. On railway, this would work: api_key = os.environ.get('api_key') but receiving various errors: I've added strip and now works fine: api_key = os.environ.get('api_key', '').strip() All working on my setup now, just thought you might want to know for other Windows users. Probably because /r/n are created in windows.