Rank 2: Process
I get this error while executing the function with python as a runtime, the function just calls a Rest API, the function always ends up with status code 500
Votes
1
Replies
20
Participants
Unknown
Messages
21
Rank 2: Process
I get this error while executing the function with python as a runtime, the function just calls a Rest API, the function always ends up with status code 500
Check if your have properly deployed the function or not
Rank 2: Process
Yes I did, the deployment and build was successful
Are you using cloud appwrite?
Put your code inside try exception try to return the error
If the appwrite is self-hosted, you can see the container logs. The default is project-name-id-deploy
Docker logs name-project-83839odidejo
Can you share some code?
Rank 2: Process
This is my code and in previous function I've used try catch, but the same error...
Rank 2: Process
Rank 2: Process
Even the simple code doesn't work like printing..
Rank 2: Process
Can I invite you to debug the function please..?
Are you on cloud or self-hosted?
What version of Appwrite are you using?
If you're below 1.4, you need to follow the syntax like so
Rank 2: Process
It is self hosted and v1.4.x
Have a look at this: https://appwrite.io/docs/functions-develop#lifecycle
Rank 2: Process
It shows runtime error
Rank 2: Process
Every AppWrite function must end with response.json or response.send return
did you use the syntax i shared?