mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-25 20:55:52 +03:00
[GH-ISSUE #539] [Bug] 更新cdnfly指定id证书报错,实际证书更新成功,看报错好像是返回值处理错误,导致工作流停了 #348
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
描述问题
报错信息:
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)cdnfly返回的是数字。
cdnfly其他地方是不是也有问题,麻烦大佬看看怎么解决!