Skip to content

fix(deploy): CF API 空响应体按 2xx 计成功——workers/domains DELETE 返回 200 无体 - #68

Merged
HandyWote merged 1 commit into
m0/devfrom
fix/core-zone-route
Sep 8, 2026
Merged

fix(deploy): CF API 空响应体按 2xx 计成功——workers/domains DELETE 返回 200 无体#68
HandyWote merged 1 commit into
m0/devfrom
fix/core-zone-route

Conversation

@HandyWote

Copy link
Copy Markdown
Contributor

真机第三发现

解绑 Custom Domain 的 DELETE 请求返回 200 空 bodyres.json()Unexpected end of JSON input 中断部署——core 主域解绑已生效、hello 未执行,留下半清理状态。

修法:toResult 统一处理——空体按 HTTP 状态码判定,非 JSON 体降级为带说明的错误。测试补空体 DELETE 用例(59 用例全绿)。

真机第三发现:解绑 Custom Domain 的 DELETE 请求返回 200 空 body,
res.json() 抛 'Unexpected end of JSON input' 中断部署(core 主域的
解绑已生效、hello 的未执行,半清理状态)。toResult 统一处理:空体按
状态码判定,非 JSON 体降级为带说明的错误。

Signed-off-by: huangyinghui <18666119673@163.com>
@HandyWote
HandyWote merged commit 83ce419 into m0/dev Sep 8, 2026
1 check passed
@HandyWote
HandyWote deleted the fix/core-zone-route branch September 8, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant