第三方平台开发,获取ticket后请求token,返回61011 invalid component hint,查不到这个错误具体是什么意思。
调用接口:POST https://api.weixin.qq.com/cgi-bin/component/api_component_token
返回信息如下:
"result":{
"data":{
"errcode":61011,
"errmsg":"invalid component hint: [gFWTMA0060d425]"
},
"status":200,
"headers":{
"connection":"keep-alive",
"content-type":"application/json; encoding=utf-8",
"date":"Wed, 15 Jan 2020 10:44:20 GMT",
"content-length":"69"
},
"res":{
"status":200,
"statusCode":200,
"statusMessage":"OK",
"headers":{
"connection":"keep-alive",
"content-type":"application/json; encoding=utf-8",
"date":"Wed, 15 Jan 2020 10:44:20 GMT",
"content-length":"69"
},
"size":69,
"aborted":false,
"rt":191,
"keepAliveSocket":false,
"data":{
"errcode":61011,
"errmsg":"invalid component hint: [gFWTMA0060d425]"
},
"requestUrls":["https://api.weixin.qq.com/cgi-bin/component/api_component_token"],
"timing":null,
"remoteAddress":"101.227.162.120",
"remotePort":443,
"socketHandledRequests":1,
"socketHandledResponses":1
}
}
这个错误到底是什么原因引起的呢?
我跟你遇到了一样的问题,请问您解决了吗?
无效的组件。
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/component_access_token.html
应该传的参数,比如是第三方组件appid无效