Back

team membership node js server-side function execution fails with generic error

  • 0
  • Teams
  • Functions
  • Self Hosted
gaurav_ch
25 Aug, 2023, 07:38

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.

TL;DR
The user is experiencing a generic failure when trying to execute a team membership Node.js server-side function in Appwrite. They receive a 500 error, and the logs show a 'Runtime not found' error message. The suggested solution is to redeploy the function and try executing it again. The user also mentions getting a "connection refused" error within the executor and provides the function code for reference. No resolution or further assistance is mentioned in the thread.
gaurav_ch
25 Aug, 2023, 07:39

here is the function code

Drake
25 Aug, 2023, 17:03

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

gaurav_ch
26 Aug, 2023, 11:25

got this in the log:

TypeScript
[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
safwan
26 Aug, 2023, 12:53

Message: Runtime not found. Please create the runtime.

Can you try to redeploy your function, and then try executing it again?

Drake
26 Aug, 2023, 17:23

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

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