Back

After sending email message Messaging page not opening. Shows error 500

  • 0
  • Self Hosted
  • Messaging
ramiky
8 Oct, 2024, 12:04

I tried first time to use messaging to send email message. I created provider for our internal SMTP-server. Then I sent message to one test user. After sending the message and tried to open Messages tab page showed Server Error 500.

I'm using Appwrite 1.6.0 self-hosted and console version is appwrite/console:5.0.16

Docker logs for appwrite contains:

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: 2024-10-08T11:50:26+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

TL;DR
Developers encountering error 500 after sending an email message in Appwrite 1.6.0 self-hosted. Issue possibly related to a warning regarding foreach() argument type and a message error in deliveryErrors. Suggested steps include creating a GitHub issue with precise reproduction steps.
D5
8 Oct, 2024, 16:22

Do you can create a GitHub issue for this? Are you able to reproduce it again in an empty project or similar?

If you have precise reproduction steps, please, put them in the github issue so the team works on solving the bug

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