Files
Nexus/docs/changelog/2026-06-07-health-monitor-telegram-quote-strip.md
T
Nexus Agent f60a5ea5bc fix(deploy): health_monitor 剥离 .env 引号以修复 Telegram 404
容器 .env 带引号的 Token 导致 sendMessage URL 无效;增加 normalize_env_value
与失败日志。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 20:58:02 +08:00

648 B
Raw Blame History

Changelog — health_monitor Telegram 引号剥离

日期: 2026-06-07

摘要

修复 health_monitor.sh 从容器 /app/.env 读取带引号的 NEXUS_TELEGRAM_* 时未剥离引号,导致 Telegram API 404、Layer 3 告警静默失败。

动机

模拟巡检演练中 docker restart 成功但用户未收到 Telegram。生产诊断:quoted token → HTTP 404strip 引号后 → HTTP 200。

涉及文件

  • deploy/health_monitor.shnormalize_env_valuesend_telegram 使用 --data-urlencode 并记录失败日志

验证

生产 curl 对比 quoted vs stripped;部署后 send_telegram 测试消息。