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
- Error
I'm trying to get sellerId using account.get() in my appwrite function and this is the error message I'm getting: "Failed to send notification to seller 6865bf...
- Is there a timeframe for updating dart r...
Dart 3.5 is already one year old, and the following versions have introduced very important features for the language. Is there a roadmap or timeframe for when...
- list() is very slow; eventually shows no...
When I use the web browser to view the collections in my database, the documents they contain are normally displayed within a few seconds. For a few days now, h...
