
Hi, I started creating a simple function "Hello World!". The deployment works, but the execution fails. Another account created the function and it worked.
main.py
def main(request, response):
return response.json({
'message': 'Hello, World!'
})
Error: Traceback (most recent call last): File "/usr/local/server/src/server.py", line 163, in action 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 156, in execute output = userModule.main(context) TypeError: main() missing 1 required positional argument: 'response'

Are you using Appwrite cloud? If so, that's not what an Appwrite function looks like. Refer to the docs.
If you're self hosting, what version of Appwrite do you have?
Recommended threads
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
- Error setting postman body
Good evening, anyone has an idea on how to pass body to appwrite function using postman? this is how I've passed it : { "providerName": "adamu" } and I ke...
- Forgot how to create functions which dep...
whenever I try to create a function using the starter template, I either get tar: short read, Build archive was not created, or the build succeeds but I dont s...
