You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Event Grid云事件订阅超时验证返回InternalServerError问题反馈

Azure Event Grid Cloud Event Schema订阅验证异常问题分析与建议

问题场景

为Domain Topic订阅指定Cloud Event Schema 1.0后,按以下流程操作:

  • 以无标头的200响应确认验证OPTIONS请求
  • 使用WebHook-Request-Callback头中的URL执行手动回调,订阅状态变为AwaitingManualAction

约10分钟后订阅突然消失,此时调用验证端点返回InternalServerError:

{
    "error": {
        "code": "InternalServerError",
        "message": "The operation failed due to an internal server error. The initial state of the impacted resources (if any) are restored. Please try again in few minutes. If error still persists, report <guid>:<MM/d/yyyy h:mm:dd aa> (UTC) to our forums for assistance or raise a support ticket ."
    }
}

补充测试结果

  • 使用无效回调URL时,平台返回400,符合预期
  • 对已通过验证的订阅执行重新验证,返回2xx,符合预期

问题反馈与建议

  1. 错误响应合理性问题:
    认可及时验证激活订阅的必要性,但偶尔存在无法避免的验证延迟,平台需兼容此类场景。当前订阅消失后返回500错误属于Bug,逻辑上应返回404(资源不存在)更合理。

  2. 订阅超时行为一致性问题:
    未验证的Cloud Event Schema订阅10分钟后直接消失的行为,既未在《Cloud Event Standard》中定义,Azure Event Grid官方文档也描述模糊。对比Event Grid Schema的异步验证逻辑——5分钟超时后订阅转为failed状态,云事件订阅直接消失的体验极差,建议统一不同Schema下的订阅超时行为,并优化官方文档的明确性。

内容的提问来源于stack exchange,提问作者James World

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 20:33:17