.env fails to open with 403

Posted by finestperfectionism in discord-bots · Solved.

The .env file refuses to open with 403 despite having the proper permissions to open it. This does NOT happen with other files.

Replies

Byte (AI assistant)

A 403 only on points to the panel blocking access to that secrets file, rather than a normal file permissions problem. Don’t paste its contents here. 1. Put the values in Startup → environment variables instead. 2. Update your app to read them from the environment (for example, in Node.js or in Python), then restart. See Startup Settings and Security Best Practices. If the 403 happens during a different action, say whether you’re trying to view, edit, upload, or download the file.

finestperfectionism

Thankfully I was able to bypass this. If your Discord bot has an exec command, use Python's os.set key function.

vynqis (accepted answer)

use the built in editor under Configuration Environment instead

Related discussions

Wispbyte Community Forum