freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.92k stars 483 forks source link

App\Jobs\SendAutoReply with Telegram Module #1151

Closed psuet closed 3 years ago

psuet commented 3 years ago

When recieving a Telegram Message (via Bot) in a "Mailbox" with Auto-Reply enabled, a App\Jobs\SendAutoReply is scheduled but fails.

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'email' cannot be null (SQL: insert into `send_logs` (`thread_id`, `message_id`, `email`, `mail_type`, `status`, `customer_id`, `user_id`, `status_message`, `updated_at`, `created_at`) values (10982, autoreply-10982-a7ce4026f43a4491f1284bb38d96f440@aaa.de, , 3, 2, 1530, , Address in mailbox given [] does not comply with RFC 2822, 3.6.2., 2021-04-11 01:43:22, 2021-04-11 01:43:22)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'email' cannot be null (SQL: insert into `send_logs` (`thread_id`, `message_id`, `email`, `mail_type`, `status`, `customer_id`, `user_id`, `status_message`, `updated_at`, `created_at`) values (10982, autoreply-10982-a7ce4026f43a4491f1284bb38d96f440@aaa.de, , 3, 2, 1530, , Address in mailbox given [] does not comply with RFC 2822, 3.6.2., 2021-04-11 01:43:22, 2021-04-11 01:43:22)) at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'email' cannot be null at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'email' cannot be null at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:115)

Stacktrace: https://privatebin.at/?33951dd07f634566#BAQ16RzqxY1MEV99R6bWi1F5Vs43AS34rnLLuvuZCk94

freescout-helpdesk commented 3 years ago

OK. We'll check it.