Back

Function Environment Variables

  • 0
  • Functions
Kenny
8 Sep, 2023, 15:26

I'm working with functions on the new 1.4.2 update, I've connected to github and I noticed that just randomly all the environment variables in my function changed to false, and if I try to open the editor it doesn't open and I get an error in the console. A long with this, no more buttons work on the console and I have to refresh. Refreshing does not fix the environment variable editor though. I can't seem to change these anymore, my only thought to do now is to delete and recreate the function, which I'd prefer not to do.

TL;DR
The user is experiencing issues with environment variables in their function on the new 1.4.2 update. The variables have randomly changed to 'false' and the editor is not opening, resulting in an error in the console. Refreshing the page does not fix the environment variable editor. The user is considering deleting and recreating the function.
Kenny
8 Sep, 2023, 15:27
Guille
8 Sep, 2023, 17:09

I think your last error is because the vars are set to false. Did you tried recreating it all?

Kenny
8 Sep, 2023, 17:15

Yea it is, I was able to delete them and recreate. I guess more than anything I'm wonder why this happened and if it was something I had done.

Drake
8 Sep, 2023, 17:17

did you upgrade to 1.4.2? how did you upgrade?

Kenny
8 Sep, 2023, 17:31

I upgraded following the docs but this function is brand new created in 1.4.2 using the new git integration.

Kenny
8 Sep, 2023, 17:32

It worked just fine for a few executions and then just broke due to the environment variables being cleared.

Kenny
8 Sep, 2023, 17:32

Nothing was changed between these executions

Kenny
8 Sep, 2023, 17:55

Seems to happen when I create a new function

Drake
8 Sep, 2023, 18:59

i just tried it but im not getting an error after deploying a new function

Drake
8 Sep, 2023, 19:07

wait i think i found the problem

Drake
8 Sep, 2023, 19:08

please try adding the _APP_OPENSSL_KEY_V1 var to the appwrite-schedules container's environment list in your docker-compose.yml file

Kenny
8 Sep, 2023, 19:11

Added

Drake
8 Sep, 2023, 19:19

and you deployed the change with docker compose up -d right? how is it now?

Kenny
8 Sep, 2023, 19:25

Yes, not noticing anything being overwritten as of yet

Kenny
8 Sep, 2023, 19:25

Functions running just fine

Drake
8 Sep, 2023, 19:27
hamed
8 Sep, 2023, 19:43

Do we need to add this var with fresh installation too?

Drake
8 Sep, 2023, 19:48

yes 😕

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more