Repository navigation
🐛 Bug Report: Messages page broken after a SMTP misconfiguration #2880
Description
👟 Reproduction steps
- Get fresh installation of a 1.7.4.
- Go to messages, misconfigure the SMTP so that appwrite cannot connect to it
- Try to send an email
- Try to go to messages page
👍 Expected behavior
Show the messages page correctly
👎 Actual Behavior
500 general error blocking access to messages page.
This is what I recovered from our Sentry logs:
{ "event_id": "669136d6e2c94d2baac365afb9c6c32d", "project": 4509607013384272, "release": "1.7.4", "platform": "php", "message": "deliveryErrors must be an array of type string", "datetime": "2025-07-04T00:38:22+00:00", "tags": [ ["code", "0"], ["database", "database_db_main"], ["environment", "production"], ["level", "error"], ["logger", "http"], ["method", "GET"], ["projectId", "6867131b00002f0a35d5"], ["release", "1.7.4"], ["service", "UNKNOWN_NAMESPACE.UNKNOWN.METHOD"], ["transaction", "UNKNOWN_NAMESPACE.UNKNOWN.METHOD"], ["url", "/v1/messaging/messages"], ["verboseType", "Exception"] ], "_meta": { "exception": { "values": { "0": { "stacktrace": { "frames": { "": { "err": [ ["invalid_data", { "reason": "expected a non-empty value" }] ] } } } } } }, "tags": { "3": { "1": { "": { "err": [ ["invalid_data", { "reason": "expected a non-empty value" }] ] } } } } }, "_metrics": { "bytes.ingested.event": 3184, "bytes.stored.event": 3792 }, "culprit": "UNKNOWN_NAMESPACE.UNKNOWN.METHOD", "environment": "production", "errors": [ { "type": "invalid_data", "name": "exception.values.0.stacktrace.frames", "reason": "expected a non-empty value" }, { "type": "invalid_data", "name": "tags.3.1", "reason": "expected a non-empty value" } ], "exception": { "values": [ { "type": "deliveryErrors must be an array of type string", "stacktrace": { "frames": null } } ] }, "extra": { "file": "/usr/src/code/src/Appwrite/Utopia/Response.php", "line": 688, "trace": "#0 /usr/src/code/src/Appwrite/Utopia/Response.php(715): Appwrite\\Utopia\\Response->output(Object(Utopia\\Database\\Document), Object(Appwrite\\Utopia\\Response\\Model\\Message))\n#1 /usr/src/code/src/Appwrite/Utopia/Response.php(615): Appwrite\\Utopia\\Response->output(Object(Utopia\\Database\\Document), Object(Appwrite\\Utopia\\Response\\Model\\BaseList))\n#2 /usr/src/code/app/controllers/api/messaging.php(3422): Appwrite\\Utopia\\Response->dynamic(Object(Utopia\\Database\\Document), 'messageList')\n#3 /usr/src/code/vendor/utopia-php/framework/src/App.php(609): {closure}(Array, '', Object(Utopia\\Database\\Database), Object(Appwrite\\Utopia\\Response))\n#4 /usr/src/code/vendor/utopia-php/framework/src/App.php(826): Utopia\\App->execute(Object(Utopia\\Route), Object(Appwrite\\Utopia\\Request), Object(Appwrite\\Utopia\\Response))\n#5 /usr/src/code/vendor/utopia-php/framework/src/App.php(723): Utopia\\App->runInternal(Object(Appwrite\\Utopia\\Request), Object(Appwrite\\Utopia\\Response))\n#6 /usr/src/code/app/http.php(454): Utopia\\App->run(Object(Appwrite\\Utopia\\Request), Object(Appwrite\\Utopia\\Response))\n#7 [internal function]: {closure}(Object(Swoole\\Http\\Request), Object(Swoole\\Http\\Response))\n#8 {main}" }, "level": "error", "logentry": { "formatted": "deliveryErrors must be an array of type string" }, "logger": "http", "metadata": { "type": "deliveryErrors must be an array of type string", "value": "" }, "title": "deliveryErrors must be an array of type string", "transaction": "UNKNOWN_NAMESPACE.UNKNOWN.METHOD", "type": "error" }
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
Linux
🧱 Your Environment
1.7.4 self-hosted
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Activity
MrEdgarsz commentedon Jul 4, 2025
FYI: I was able to fix it by manually finding the ID of the record in the database, and removing it via CLI
eldadfux commentedon Sep 21, 2026
Starting today this repo is archived. Please raise any issues with the new Appwrite console on the main platform repo: https://github.com/appwrite/appwrite