当前位置:网站首页>Wechat official account can reply messages normally, but it still prompts that the service provided by the official account has failed. Please try again later

Wechat official account can reply messages normally, but it still prompts that the service provided by the official account has failed. Please try again later

2022-06-25 09:29:00 Maoningyi

The official account had a sudden draught two days ago , Although the message can be replied normally , However, it still prompts that the service provided by the official account fails , Please try again later

Most of the reasons are found online because they are bound to a third-party platform , Just cancel the authorization of the third party , But I unlicensed all third-party platforms , There is still this problem . You have to find the problem from your own server .

Print messages on the background server , It is found that each message will repeat the request 4 Time , Print nginx journal

access_log /var/log/nginx/access.log;

Discover that every time a user sends a message , There will be two different IP request , And each request returns a status code 404

So I forced to modify the returned status code in the code , The status code returned for each request is 200, instead of 404

ctx.response.body = {
    
    status: 200,
    description: 'ok',
    result: data
}

So the problem is solved

原网站

版权声明
本文为[Maoningyi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200552070912.html