Wait, as a project variable or in the .env file?
Sorry I meant function variable
Yea, same error still unfortunately
and you deployed the env var change? can you log the env var and type of the env var to check?
Wierd, adding new function variables through the console isn't working.. π
what do you mean?
Disregard that, think it was just acting up. However, nothing appears when i log process.env.NODE_TLS_REJECT_UNAUTHORIZED
sounds like the env var isn't set. did you redeploy after adding the env var?
yea i did, tried creating another function variable and it works just fine
When i set a function variable to be 1, i get this: Var: 1, Var type: string
when i set it to be 0, i get this: Var: , Var type: string
π§
Oh lol ....
Im mildly confused lol
We do checks for things and it could be that we filtered it out because we thought it was nothing
In your code, can you add process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0";
That works π
Everything running as it should
[SOLVED] AppwriteException [Error]: self-signed certificate local dev
Should i create an issue or?
Hmm yes
it's okay, i've already created one: https://github.com/appwrite/appwrite/issues/6832
Aight, appreciate the help steven <:appwritefire:823999000330895380>
question...what node runtime were you using?
or what version of node were you running where you got the error?
i have node 18.18.0 installed locally, and logging process.version gives 18.0.0
I found the issue. I have 2 client instances in the function. The primary using an API key to act as the server and then another temporary client using the user JWT, in order to verify the user upon request. In the second one i was doing a check whether to setSelfSigned or not, which was failing. I apologize for the confusion, and again, thank you for the help regardless
Recommended threads
- [v1.8.1] Getting error "(role: applicati...
... but that scope doesn't exist. I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got: ...
- Scheduled function silently stopped firi...
Function is scheduled `* * * * *` and is `enabled: true`, but Appwrite Cloud has stopped queueing executions. Last execution: **2026-05-30 00:47 UTC** (~46h...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I canβt fin...