Skip to content
Back

update_documents is called inside a function, it throws an exception

  • 0
  • Databases
  • Functions
  • Cloud
cy
28 Aug, 2025, 09:20

Traceback (most recent call last): File "/usr/local/server/src/function/src/main.py", line 23, in main result = databases.update_documents( File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/services/databases.py", line 2018, in update_documents return self.client.call('patch', api_path, { File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/client.py", line 138, in call raise AppwriteException(response.json()['message'], response.status_code, response.json().get('type'), response.text) appwrite.exception.AppwriteException: Server Error

But the same code works fine when I run it locally

TL;DR
An exception is thrown when the function calling update_documents is run, specifically a Server Error. The code works fine locally but not on the server.
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