I have a function in appwrite made in python and within my python function I want to call another function that I have in my appwrite made in nodejs, however it gives me a strange error that says "{"response":"Error: create( ) missing 1 required positional argument: 'runtime'"}"
maybe my structure of how I execute the function is wrong or what is happening? I attach a photo of my code and how I am trying to execute the function
I don't think you're calling the right method. See https://appwrite.io/docs/server/functions?sdk=python-default#functionsCreate
i have updated the structure of my function, however the console returns "Server Error"
For additional information this is my nodejs function info:
I think I'm giving it a solution, I'll let you know in a little if I succeed
What is your updated code?
I am attaching a picture of my current code, apparently I was trying to create a new function when what I wanted to do was create an execution of a function that already exists, but even so the problem persists and the console keeps throwing me the "server error" error
The console error:
Is a new execution created for the other function? What do the docker logs for the appwrite container say?
no, the function that I am calling is not executed
I have my appwrite hosted on digitalocean, can docker logs be accessed?
using docker logs appwrite it shows this:
maybe i need to pass the async prop ?
I attached a picture of how I'm passing the async prop, but the console throws this new error
{"response":"Error: name 'true' is not defined"}
In the documentation I don't see that it asks me for a name value, do I have to pass it to it too or is it an error?
Correct... In python, you use True or False
Oh I see, I'll try that
That works, thank you @Steven :appwritecheers:
[SOLVED] Python function throwing an error
Recommended threads
- Cloud Function Deployment Issue – Timeou...
Impossible to deploy a function for more than an hour. My project ID is: 69cc7a82000b42b8f5e2 Here's the error I get after waiting 15 minutes: Synchronous funct...
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...
- Event-triggered function executes but pr...
Hello! I'm running self-hosted Appwrite 1.9.0. I have a Dart function (tried both dart-3.5 and dart-3.10 runtimes) with these events configured: ```teams.staff...