Skip to content

[Bug] 能否支持给多个用户发邮件告警 #297

@fuleru

Description

@fuleru

Checklist

  • 我已经将版本更新到最新 Release 版
  • 我已经详细阅读文档, 仍然无法解决
  • 我已经搜索已有的 Issues | Discussions, 仍然无法解决
  • 我已经尝试过 Google 搜索仍然无法解决

💻 系统环境

Ubuntu

🐛 问题描述

to = "xxxxblinux@gmail.com yyyblinux@gmail.com"

./stat_server -c config.toml --notify-test

然后直接core dump了

send test message to email
thread 'main' panicked at 'called Result::unwrap() on an Err value: InvalidUser', server/src/notifier/email.rs:53:40
stack backtrace:
0: 0x7fe003cbe630 -
1: 0x7fe003a7388e -
2: 0x7fe003c9c514 -
3: 0x7fe003cbfb8f -
4: 0x7fe003cbf78f -
5: 0x7fe003cc07f9 -
6: 0x7fe003cc02d4 -
7: 0x7fe003cc0236 -
8: 0x7fe003cc0221 -
9: 0x7fe003945b72 -
10: 0x7fe003945ef2 -
11: 0x7fe00398746a -
12: 0x7fe0039e9185 -
13: 0x7fe0039f363f -
14: 0x7fe003a19974 -
15: 0x7fe003a0cbb6 -
16: 0x7fe0039769a6 -
17: 0x7fe0039774c1 -
18: 0x7fe003a1e1f8 -
Aborted (core dumped)

🚦 期望结果

能支持给多个邮件地址告警

📷 复现步骤

No response

📝 补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions