When calling the WeChat public account preview interface [available after the subscription account and service account authentication are available], an error is reported: errcode: 40132, errmsg: Invalid username Rid: Investigation and analysis of 60DAC95D-5C42D192-50F09436
1. Check the development document and preview the interface [available after the subscription number and service account authentication are available]. as shown in Figure 1
2. After the actual call, the response error: errcode: 40132, errmsg: Invalid username Rid: 60DAC95D-5C42D192-50F09436.
Array
(
[code] => 200
[status] => OK
[responseline] => HTTP/1.0 200 OK
[headers] => Array
(
[Connection] => close
[Content-Type] => application/json; encoding=utf-8
[Date] => Tue, 29 Jun 2021 07:18:54 GMT
[Content-Length] => 77
)
[content] => {"errcode":40132,"errmsg":"invalid username rid: 60dac95d-5c42d192-50f09436"}
[meta] => HTTP/1.0 200 OK
Connection: close
Content-Type: application/json; encoding=utf-8
Date: Tue, 29 Jun 2021 07:18:54 GMT
Content-Length: 77
{"errcode":40132,"errmsg":"invalid username rid: 60dac95d-5c42d192-50f09436"}
)
3. Check the description of the return code, the reason is: WeChat account is illegal. as shown in Figure 2
4. Check the request parameters, touser=13980000000, that is, the mobile phone number. as shown in Figure 3
5. Modify the request parameters, touser=shuijingsewwwqnwq66tt, that is, WeChat. Respond successfully. as shown in Figure 4
Array
(
[code] => 200
[status] => OK
[responseline] => HTTP/1.0 200 OK
[headers] => Array
(
[Connection] => close
[Content-Type] => application/json; encoding=utf-8
[Date] => Tue, 29 Jun 2021 07:31:01 GMT
[Content-Length] => 40
)
[content] => {"errcode":0,"errmsg":"preview success"}
[meta] => HTTP/1.0 200 OK
Connection: close
Content-Type: application/json; encoding=utf-8
Date: Tue, 29 Jun 2021 07:31:01 GMT
Content-Length: 40
{"errcode":0,"errmsg":"preview success"}
)



