Hello! I am trying to include an env. variable, but the execution fails. Do you have any idea what is wrong?
TypeScript
async def process_file(file):
try:
allowed_extensions = os.getenv("ALLOWED_EXTENSIONS", "").split(",")
if not allowed_extensions:
raise ValueError("ALLOWED_EXTENSIONS not set")
if file["type"] == "file" and file["name"].lower().endswith(
(tuple(allowed_extensions))
):
TL;DR
Developers are trying to include an environment variable in their code, however, the execution fails. The problem might be the environment variable not being set. Make sure to set it properly.Recommended threads
- 1.9.1 update
do you guys, have new update workflow? migration asking me to run browser..... on VPS.
- Using Binary Log with Appwrite
If I can remember correctly appwrite uses mariaDB as the underlying database. If so could I use mariaDB’s binary log to see database operations from appwrite?
- Issue with OAuth 2.0 authentication
Good evening, I’m reaching out because I’m having a small issue with Appwrite. I’m trying to set up OAuth2 with Twitch, and even though I’m entering the correc...