Files
cold_display_guard/tasks/lessons.md
skye.yue 45e2cf70f7 feat: enrich webhook payloads with downstream event table fields
Add missing fields (event_code, camera_ip, started_at, ended_at,
dwell_seconds, is_discarded, alerted_at, etc.) to both batch_event
and case_event payloads. Introduce source_id config for payload
injection and infer_camera_ip to extract IP from RTSP stream URL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-10 17:04:58 +08:00

583 B

Lessons

  • 2026-06-10: 远端接收端路由不能只凭已有相似服务或历史路径推断,必须先对用户指定的精确路径做真实 HTTP 探测,再决定配置值。 Prevention:
    1. 对每个用户指定的 Webhook 路径,先在目标主机上用与真实请求接近的 POST 探测并记录状态码。
    2. 如果存在多个相似路径,只能在验证过用户指定路径不可用后,才考虑回退到其它路径。
    3. 切换远端配置前,先确认发送端容器对目标主机名或 IP 实际可达,避免写入不可解析的地址。