quick-musician-16229
03/17/2023, 8:04 AM--watch-courier
and 0 for the value of the beforementioned env. variable. When I create a verification flow, kratos sends out several emails to the same address instead of one, moreover it complains about being Unable to set the message status to "sent". audience=application error=map[debug: message:Unable to locate the resource reason
. Here are the logs https://pastebin.com/1WNLsw6m. Pay attention to the email id - it's the same for the three attempts (instead of 1).
And as the result I have 2 emails in my mailbox. If it's relevant I use Postmark as SMTP server and GMail as a mailbox for testing. In the courier_messages
table I have send_count
2 and status
4 on the message with the id.bland-eye-99092
03/17/2023, 8:09 AMmessage state
is used to determine, whether to retry sending the message. Since it can’t be set to sent
it will retry on the next iteration of the courier.
Not easy to tell what’s going on here. It seems, that it can’t find the message in the table, which is weird because it obviously can (while sending it). What DB are you using?quick-musician-16229
03/17/2023, 8:10 AMbland-eye-99092
03/17/2023, 8:12 AMMessage was abandoned because it did not deliver after 2 attempts
these attempts are also just written to the DB row, so it makes no sense to me, that it can’t set the message status. Let me double check in the code.bland-eye-99092
03/17/2023, 8:16 AMsend_count
, but can’t set the message status. Could you open an issue in ory/kratos and link to this conversation in there? Thanks! 🙂quick-musician-16229
03/17/2023, 8:17 AMquick-musician-16229
03/17/2023, 8:19 AMbland-eye-99092
03/17/2023, 8:20 AMquick-musician-16229
03/17/2023, 8:33 AMbland-eye-99092
03/17/2023, 8:34 AMquick-musician-16229
03/17/2023, 8:34 AM