[GH-ISSUE #1144] [Bug] 天翼云CDN证书部署后对JSON数据解析失败 #771

Closed
opened 2026-03-03 01:05:54 +03:00 by kerem · 0 comments
Owner

Originally created by @mothz on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1144

Release Version / 软件版本

0.4.12

Description / 缺陷描述

天翼云的CDN证书部署时,证书能上传成功,但未成功绑定到域名上。 在执行查询域名的时候对天翼云返回的JSON数据解析失败,导致部署中断。

Steps to reproduce / 复现步骤

Logs / 日志

[2026-01-06 16:52:34] ssl certificate uploaded result: {"certId":"55967","certName":"certimate-1767689554518"}
[2026-01-06 16:52:34] found cdn domains to deploy domains: ["**CDN加速域名**"]
[2026-01-06 16:52:35] sdk request 'cdn.QueryDomainDetail' request: {"domain":"**CDN加速域名**"}
response: {"statusCode":100000,"message":"正确返回","returnObj":{"domain":"**CDN加速域名**","cname":"**CDN加速域名**.ctadns.cn.","product_code":"008","product_name":"","area_scope":1,"status":4,"insert_date":0,"https_status":"off","https_basic":{"https_force":"off","http_force":"off","force_status":"302","origin_protocol":"http"},"cert_name":"","ssl":"","ssl_stapling":"off"}}
[2026-01-06 16:52:35] could not deploy certificate
[2026-01-06 16:52:35] failed to execute sdk request 'cdn.QueryDomainDetail': sdkerr: failed to unmarshal response: json: cannot unmarshal string into Go struct field DomainDetail.returnObj.DomainRecord.insert_date of type int64 (resp: {"returnObj":{"status_date":"1767609286000","zos_origin":{"origin":"autotruck-blucket.guizhou-3.zos.ctyun.cn","sk":"","private_bucket":0,"ak":"","switch":1},"https_basic":{"https_force":"off","force_status":"302","origin_protocol":"http","http_force":"off"},"cache_status_resp_headers":{"switch":0},"limit_speed_uri_condition":{},"ssl":"","backorigin_arg_rewrite":[],"black_referer":{},"req_headers":[],"area_scope":1,"remote_sync_auth":[],"md5_secure_time_condition":{},"ipv6_enable":1,"filetype_ttl":[{"mode":0,"file_type":"php,ashx,aspx,asp,jsp,do","cache_type":3,"priority":10,"ttl":0,"cache_with_args":0},{"mode":0,"file_type":"js,css,xml,htm,html","cache_type":3,"priority":10,"ttl":1800,"cache_with_args":0},{"mode":0,"file_type":"swf,jpg,jpeg,webp,gif,png,bmp,ico,ts","cache_type":3,"priority":10,"ttl":86400,"cache_with_args":0},{"mode":0,"file_type":"wmv,mp3,wma,ogg,flv,mp4,avi,mpg,mpeg,f4v,hlv,rmvb,rm,3gp,img,bin,zip,rar,ipa,apk,jar,sis,xap,msi,exe,cab,7z,pdf,doc,docx,xls,xlsx,ppt,pptx,txt","cache_type":3,"priority":10,"ttl":31536000,"cache_with_args":0}],"insert_date":"1767609286000","cachekey_args":[],"resp_headers":[],"https_status":"off","backorigin_uri_rewrite_condition":{},"ip_white_list":"","cus_gzip_condition":{},"domain":"**CDN加速域名**","error_code":[],"status":4,"record_status":"true","entry_limits":[],"dns_query":{"switch":0},"origin":[{"protocol":"http","role":"master","port":80,"origin":"autotruck-blucket.guizhou-3.zos.ctyun.cn","weight":10}],"cname":"**CDN加速域名**.ctadns.cn.","define_redirect":[],"backorigin_arg_rewrite_condition":{},"record_num":"蜀ICP备xxxxxxxxx号-1","product_code":"008","cachekey_args_condition":{},"xos_origin_is":0,"ignore_backorigin_args":0,"black_referer_condition":{},"md5_secure_time":[],"limit_speed_const_condition":{},"trip_tag_refresh":"off","ip_black_list":"","ssl_stapling":"off","origin_host_type":0,"user_agent":{"mode":0,"ignore_case":"on","type":1,"ua":["maiyoule-client-*"]},"limit_speed_uri":[],"remote_sync_auth_condition":{},"error_page":[],"backorigin_uri_rewrite":[],"follow302_is_valid":0,"shared_host":"","entry_limits_condition":{},"gzip":{},"white_referer_condition":{},"cus_gzip":[],"basic_conf":{"follow302":0,"https_origin_port":443,"http_origin_port":80,"use_http2":0},"define_redirect_condition":{},"white_referer":{},"req_host":"","gzip_condition":{},"limit_speed_const":[],"xos_origin":{},"origin_protocol":"http"},"message":"正确返回","statusCode":100000})

以上是报错日志(其中部分域名数据做了替换)

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @mothz on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1144 ### Release Version / 软件版本 0.4.12 ### Description / 缺陷描述 天翼云的CDN证书部署时,证书能上传成功,但未成功绑定到域名上。 在执行查询域名的时候对天翼云返回的JSON数据解析失败,导致部署中断。 ### Steps to reproduce / 复现步骤 - ### Logs / 日志 <details> ```console [2026-01-06 16:52:34] ssl certificate uploaded result: {"certId":"55967","certName":"certimate-1767689554518"} [2026-01-06 16:52:34] found cdn domains to deploy domains: ["**CDN加速域名**"] [2026-01-06 16:52:35] sdk request 'cdn.QueryDomainDetail' request: {"domain":"**CDN加速域名**"} response: {"statusCode":100000,"message":"正确返回","returnObj":{"domain":"**CDN加速域名**","cname":"**CDN加速域名**.ctadns.cn.","product_code":"008","product_name":"","area_scope":1,"status":4,"insert_date":0,"https_status":"off","https_basic":{"https_force":"off","http_force":"off","force_status":"302","origin_protocol":"http"},"cert_name":"","ssl":"","ssl_stapling":"off"}} [2026-01-06 16:52:35] could not deploy certificate [2026-01-06 16:52:35] failed to execute sdk request 'cdn.QueryDomainDetail': sdkerr: failed to unmarshal response: json: cannot unmarshal string into Go struct field DomainDetail.returnObj.DomainRecord.insert_date of type int64 (resp: {"returnObj":{"status_date":"1767609286000","zos_origin":{"origin":"autotruck-blucket.guizhou-3.zos.ctyun.cn","sk":"","private_bucket":0,"ak":"","switch":1},"https_basic":{"https_force":"off","force_status":"302","origin_protocol":"http","http_force":"off"},"cache_status_resp_headers":{"switch":0},"limit_speed_uri_condition":{},"ssl":"","backorigin_arg_rewrite":[],"black_referer":{},"req_headers":[],"area_scope":1,"remote_sync_auth":[],"md5_secure_time_condition":{},"ipv6_enable":1,"filetype_ttl":[{"mode":0,"file_type":"php,ashx,aspx,asp,jsp,do","cache_type":3,"priority":10,"ttl":0,"cache_with_args":0},{"mode":0,"file_type":"js,css,xml,htm,html","cache_type":3,"priority":10,"ttl":1800,"cache_with_args":0},{"mode":0,"file_type":"swf,jpg,jpeg,webp,gif,png,bmp,ico,ts","cache_type":3,"priority":10,"ttl":86400,"cache_with_args":0},{"mode":0,"file_type":"wmv,mp3,wma,ogg,flv,mp4,avi,mpg,mpeg,f4v,hlv,rmvb,rm,3gp,img,bin,zip,rar,ipa,apk,jar,sis,xap,msi,exe,cab,7z,pdf,doc,docx,xls,xlsx,ppt,pptx,txt","cache_type":3,"priority":10,"ttl":31536000,"cache_with_args":0}],"insert_date":"1767609286000","cachekey_args":[],"resp_headers":[],"https_status":"off","backorigin_uri_rewrite_condition":{},"ip_white_list":"","cus_gzip_condition":{},"domain":"**CDN加速域名**","error_code":[],"status":4,"record_status":"true","entry_limits":[],"dns_query":{"switch":0},"origin":[{"protocol":"http","role":"master","port":80,"origin":"autotruck-blucket.guizhou-3.zos.ctyun.cn","weight":10}],"cname":"**CDN加速域名**.ctadns.cn.","define_redirect":[],"backorigin_arg_rewrite_condition":{},"record_num":"蜀ICP备xxxxxxxxx号-1","product_code":"008","cachekey_args_condition":{},"xos_origin_is":0,"ignore_backorigin_args":0,"black_referer_condition":{},"md5_secure_time":[],"limit_speed_const_condition":{},"trip_tag_refresh":"off","ip_black_list":"","ssl_stapling":"off","origin_host_type":0,"user_agent":{"mode":0,"ignore_case":"on","type":1,"ua":["maiyoule-client-*"]},"limit_speed_uri":[],"remote_sync_auth_condition":{},"error_page":[],"backorigin_uri_rewrite":[],"follow302_is_valid":0,"shared_host":"","entry_limits_condition":{},"gzip":{},"white_referer_condition":{},"cus_gzip":[],"basic_conf":{"follow302":0,"https_origin_port":443,"http_origin_port":80,"use_http2":0},"define_redirect_condition":{},"white_referer":{},"req_host":"","gzip_condition":{},"limit_speed_const":[],"xos_origin":{},"origin_protocol":"http"},"message":"正确返回","statusCode":100000}) ``` 以上是报错日志(其中部分域名数据做了替换) </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:05:54 +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#771
No description provided.