Back

failed execute of enpty function

  • 0
  • Self Hosted
  • Functions
polbuhanky
8 Sep, 2023, 21:09

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

TL;DR
User is experiencing an error when trying to execute a function. It appears to be caused by using an outdated version of the CLI. Recommended solution is to update CLI to version 4.0.0.
Drake
8 Sep, 2023, 21:16

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

polbuhanky
8 Sep, 2023, 21:24

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

Drake
8 Sep, 2023, 23:17

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

polbuhanky
9 Sep, 2023, 05:54

1.1.1

Drake
9 Sep, 2023, 05:56

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

polbuhanky
9 Sep, 2023, 05:56

How I can update CLI?

Drake
9 Sep, 2023, 05:56

How did you install it previously?

polbuhanky
9 Sep, 2023, 05:57
Drake
9 Sep, 2023, 05:59

You can try running that again

polbuhanky
9 Sep, 2023, 07:02
Drake
9 Sep, 2023, 15:33

actually don't install it that way...

Drake
9 Sep, 2023, 15:34

Can you uninstall it by deleting the binary?

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