[GH-ISSUE #1120] [Feature] 部署证书失败时,打印响应状态码、响应体 #756

Closed
opened 2026-03-03 01:05:46 +03:00 by kerem · 1 comment
Owner

Originally created by @pooneyy on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1120

Description / 功能描述

部署证书失败时,打印响应状态码、响应体

Motivation / 请求动机

部署证书失败时,打印响应状态码、响应体,这样可以便于排查。

事情发生在今晚,部署证书失败,反复尝试数次均未成功。翻遍日志,发现1panel面板并没有请求记录,然后登录 CDN 后台,终于找到了对应的记录,原来是因为我前段时间调整了 CDN 的防护策略,CDN 把这些部署证书的请求全部拦截了。本次应该是 CDN 返回的内容不是 json,解析失败所以报错。

如果日志记录了请求的响应内容,那么一下就能发现问题在哪,这样会少走不少弯路。

Image

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @pooneyy on GitHub (Dec 22, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1120 ### Description / 功能描述 部署证书失败时,打印响应状态码、响应体 ### Motivation / 请求动机 部署证书失败时,打印响应状态码、响应体,这样可以便于排查。 事情发生在今晚,部署证书失败,反复尝试数次均未成功。翻遍日志,发现1panel面板并没有请求记录,然后登录 CDN 后台,终于找到了对应的记录,原来是因为我前段时间调整了 CDN 的防护策略,CDN 把这些部署证书的请求全部拦截了。本次应该是 CDN 返回的内容不是 json,解析失败所以报错。 如果日志记录了请求的响应内容,那么一下就能发现问题在哪,这样会少走不少弯路。 <img width="812" height="479" alt="Image" src="https://github.com/user-attachments/assets/75a317cf-bf85-4ca6-b32a-65ede0d69523" /> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:05:46 +03:00
Author
Owner

@pooneyy commented on GitHub (Dec 22, 2025):

消息推送作为获取错误详情的途径之一,有时不那么可靠

Image
<!-- gh-comment-id:3682604607 --> @pooneyy commented on GitHub (Dec 22, 2025): 消息推送作为获取错误详情的途径之一,有时不那么可靠 <img width="830" height="313" alt="Image" src="https://github.com/user-attachments/assets/6ff2ae86-d5ab-4502-a80d-805da7f4f522" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#756
No description provided.