team membership node js server-side function execution fails with generic error
- 0
- Teams
- Functions
- Self Hosted

I am trying to add a user to a team using appwrite functions but I keep getting a generic failure message.
I am attaching the files for code and result as discord does not allow big messages.
Please help.

here is the function code

If you get a 500 error, you'll have to look at the docker logs for the appwrite container to see the details for the error

got this in the log:
[Error] Type: Exception
[Error] Message: Runtime not found. Please create the runtime.
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 469
Building container : 64ae9c5494312d841543-64e857d4d9a3a735814d
Build Stage completed in 1 seconds
Executing Runtime: 64ae9c5494312d841543-64e857d4d9a3a735814d
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Conne
ction refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541
Executing Runtime: 64ae9c5494312d841543-64e857d4d9a3a735814d
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Conne
ction refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541
Executing Runtime: 64ae9c5494312d841543-64e857d4d9a3a735814d
Function executed in 0.46883583068848 seconds, status: failed
[Error] Type: Exception
[Error] Message: Runtime not found. Please create the runtime.
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 469
Building container : 64ae9c5494312d841543-64e84b0c7175659f7540
Build Stage completed in 1 seconds
Executing Runtime: 64ae9c5494312d841543-64e84b0c7175659f7540
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Conne
ction refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541
Executing Runtime: 64ae9c5494312d841543-64e84b0c7175659f7540
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Conne
ction refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541
Executing Runtime: 64ae9c5494312d841543-64e84b0c7175659f7540
Function executed in 0.54183387756348 seconds, status: failed

Message: Runtime not found. Please create the runtime.
Can you try to redeploy your function, and then try executing it again?

You said you got a 500 error. You need to look at the logs for the appwrite container to see the details for the 500 error
Recommended threads
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Invalid `success` param
Hi again, I've tried to set up the login process. However, I always get the message: `Invalid success param: URL host must be one of: localhost, xxx` I've alr...
- Is it possible to have multiple smtp on ...
I already have one in one project but is it possible to use different one in another?
