说明
智能应用平台有一个调试网页,可以调试接口,地址:41.189.148.7:9017/artemis-web/debug
提供测试接口:按事件类型获取事件订阅信息
报文:{"eventTypes":[3187675137,3204452353]}
问题
{"code":"0x02401003","msg":"Invalid Signature! and StringToSign: POST\napplication/json\nKNX41vB0j1+k9/GyLAWIaA==\napplication/json;charset=UTF-8\naccept:application/json\ncontent-md5:KNX41vB0j1+k9/GyLAWIaA==\ncontent-type:application/json;charset=UTF-8\nx-ca-key:23127167\nx-ca-nonce:67681bac-2caa-4b43-9a2e-641a099aae8b\nx-ca-timestamp:1616571610000319\n/artemis/api/common/v1/event/getTopicInfo"}
分析
环境部署在*网,拷贝文件需要申请,因此实施人员通过手动输入的方式提供API接口密钥,小写的l和大写的I搞混了,导致认证鉴权失败,提示很明显:无效的签名
解决
申请正确密钥