f60a5ea5bc
容器 .env 带引号的 Token 导致 sendMessage URL 无效;增加 normalize_env_value 与失败日志。 Co-authored-by: Cursor <cursoragent@cursor.com>
648 B
648 B
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 404;strip 引号后 → HTTP 200。
涉及文件
deploy/health_monitor.sh—normalize_env_value;send_telegram使用--data-urlencode并记录失败日志
验证
生产 curl 对比 quoted vs stripped;部署后 send_telegram 测试消息。