
I get this error, when I try to execute function: Traceback (most recent call last): File "/usr/local/server/src/server.py", line 165, in handler output = await asyncio.wait_for(execute(context), timeout=safeTimeout) File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for return fut.result() File "/usr/local/server/src/server.py", line 158, in execute output = userModule.main(context) TypeError: main() missing 1 required positional argument: 'res

that function is a pre-1.4.0..is this a new function created in 1.4?

yes, i created it by "init function" in 1.4

perhaps you're using an old SDK. what's the output of appwrite -v
?

1.1.1

Ya that's really old. You should be using version 4.0.0

How I can update CLI?

How did you install it previously?

curl -sL https://appwrite.io/cli/install.sh

You can try running that again


actually don't install it that way...

Can you uninstall it by deleting the binary?
Recommended threads
- Can I use Appwrite Self-Hosted commercia...
Hi! I'm a student working on my own app, and in the future I’d like to monetize it (e.g. through subscriptions or paid features). I'm using Appwrite Self-Hoste...
- Getting 413 Payload too large when calli...
Hi, I have a self hosted v. 1.7.4 instance behind a reverse proxy and it is actually working well. But when I call: ```dart await account.deleteSession('curre...
- Strange sites behavior on self-hosted
Hello! I've been using sites for some weeks now, and everything seemed to be working fine. I have three sites (static) set, linked with github repositories: ...
