[GH-ISSUE #539] [Bug] 更新cdnfly指定id证书报错,实际证书更新成功,看报错好像是返回值处理错误,导致工作流停了 #348

Closed
opened 2026-03-03 01:02:38 +03:00 by kerem · 0 comments
Owner

Originally created by @softxx on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/539

Originally assigned to: @fudiwei on GitHub.

描述问题

Image
报错信息:
failed to execute sdk request 'cdnfly.UpdateCertificate': cdnfly api error: failed to parse response: json: cannot unmarshal number into Go struct field UpdateCertificateResponse.code of type string

其他信息
看了一下源码,是不是这这里的 %s导致的。
github.com/usual2970/certimate@5579780b12/internal/pkg/vendors/cdnfly-sdk/api.go (L37)
Image
cdnfly返回的是数字。
Image
cdnfly其他地方是不是也有问题,麻烦大佬看看怎么解决!

Originally created by @softxx on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/539 Originally assigned to: @fudiwei on GitHub. **描述问题** ![Image](https://github.com/user-attachments/assets/64aaa3d5-37ca-4f44-9496-58124bdebf2d) 报错信息: failed to execute sdk request 'cdnfly.UpdateCertificate': cdnfly api error: failed to parse response: json: cannot unmarshal number into Go struct field UpdateCertificateResponse.code of type string **其他信息** 看了一下源码,是不是这这里的 %s导致的。 https://github.com/usual2970/certimate/blob/5579780b12ca367fa2bfc71c1a2ad6e06d419383/internal/pkg/vendors/cdnfly-sdk/api.go#L37 ![Image](https://github.com/user-attachments/assets/cac654f5-7752-47d8-ae91-8dfcaf534552) cdnfly返回的是数字。 ![Image](https://github.com/user-attachments/assets/73d63e4a-8c7b-4bc1-af5b-c5fc0a596eeb) cdnfly其他地方是不是也有问题,麻烦大佬看看怎么解决!
kerem 2026-03-03 01:02:38 +03:00
  • closed this issue
  • added the
    bug
    label
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#348
No description provided.