json data parsing prompt error: "errno":3,"error":"auth failed:key:…"

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5Yqq5Yqb5a2m5Lmg55qE5b-D5a2Q,size_20,color_FFFFFF,t_70,g_se,x_16

 Cause analysis: The authentication information is incorrect

Solution: After checking the official API call document, it can be seen that in the new version of mqtt IoT suite, the security authentication information is an upgraded version. In order to avoid leaking the api-key during data transmission, the key generated by the token is used for transmission, so All keys generated by Authorization: token are used. Instead of using APIKEY directly.

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5Yqq5Yqb5a2m5Lmg55qE5b-D5a2Q,size_20,color_FFFFFF,t_70,g_se,x_16

 Extension: Parameters required by the token calculation tool: res refers to the official document, which will be different according to different needs; et is the expiration time, which can be obtained by searching "timestamp conversion" directly in the browser; key is AccessKey;

Guess you like

Origin blog.csdn.net/weixin_58222015/article/details/124468582