MrT2010Original post
Rank 1: Thread
Hello,
on my self hosted instance (1.6.0) after I tried to use the messaging feature and press "send" for a test message, I get "Error 500" for the messaging tab, I can't access it anymore. In other projects, its still working, only in the one project I tested not anymore. I already restarted the docker container. Does not help.
The error via "docker compose logs appwrite" is:
appwrite | Warning: foreach() argument must be of type array|object, int given in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php on line 5440
appwrite |
appwrite | Warning: foreach() argument must be of type array|object, int given in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php on line 5381
appwrite | [Error] Timestamp: 2025-05-16T12:22:18+00:00
appwrite | [Error] Method: GET
appwrite | [Error] URL: /v1/messaging/messages
appwrite | [Error] Type: Exception
appwrite | [Error] Message: deliveryErrors must be an array of type string
appwrite | [Error] File: /usr/src/code/src/Appwrite/Utopia/Response.php
appwrite | [Error] Line: 630
What can I do to resolve this?
Thanks
Summary
Developers encountered an Error 500 while using the messaging feature on a self-hosted instance of version 1.6.0. The error log shows warnings and an exception related to the messaging component. Restarting the docker container did not fix the issue. To resolve this, developers should investigate the error log for any recent changes that might have affected the messaging functionality, and check if the 'deliveryErrors' are properly handled as an array of type string.