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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...