WX_HEADER_GET_FAILED
Error Cause
Failed to get WeChat request header, possible reasons include:
- Required request header information missing in WeChat Mini Program or Official Account environment;
- Request does not carry correct WeChat identity authentication information;
- WeChat Session Key or related credentials invalid or expired.
Solution
- Verify if current runtime environment is WeChat Mini Program or WeChat Official Account;
- Check if request correctly carries WeChat-related authentication information;
- If calling in non-WeChat environment, please use other suitable authentication methods;
- Re-login WeChat to get valid identity credentials.