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
- Guideline of AI
Hello everyone, I’m planning to specialize in Artificial Intelligence (AI) and I’m currently looking for guidance from someone with strong experience in the fi...
- Dotnet functions on cloud
I'm trying to deploy my .Net8 functions to my project on cloud.appwrite through the CLI. I'm getting this error.
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...