Please search in FAQ List first, and make sure your problem has not been solved before.
Please search in the issue first, and make sure your problem had not been reported before
1. Versions
What is your wechaty version?
Answer: 0.40.8
Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
Answer: padplus
What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
Answer: 0.7.18
What is your node version? (run node --version)
Answer: 13.9.0
What os are you using
Answer: Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-48-generic x86_64)
2. Describe the bug
After deploying new code to the production server, and restarting pm2, and waiting for WeChaty to finish initialisation i.e. after onLogin is called, I send a message to the chatbot and expect the chatbot to send me back 7~10 messages.
Instead I will often get 4~6 messages.
What happens is that at one point, the chatbot sends a message and throws the following error and the script stops running.
Error: can not find callback by traceId : 8e86faec-0794-400e-a8df-xxxxxxx
at GrpcGateway.<anonymous> (/home/git/live/archybot/node_modules/wechaty-puppet-padplus/src/server-manager/grpc-gateway.ts:488:19)
at Generator.next (<anonymous>)
at fulfilled (/home/git/live/archybot/node_modules/wechaty-puppet-padplus/dist/src/server-manager/grpc-gateway.js:5:58)
3. To Reproduce
Not always reproduciable. Happens sometimes after restarting the server. The problem often disappears after the first encountering and the chatbot will behave normally.
I have the following function to perform a sequential execution of promises.
Most time everything works well. Only encounter the error sometimes.
4. Expected behavior
Most of the time the script runs properly i.e. the chatbot will send me back 7~10 messages instead of running into the error halfway.
5. Actual behavior
Sometimes the script stops halfway and throws the error. And I don't receive the remaining messages. This has only happened on my production server hosted on Aliyun.
6. Full Output Logs
Hasn't been able to reproduce after turnning on WECHATY_LOG=silly.
Will update the issue again when the error is encountered.
7. Additional context
The Aliyun production server is hosted in Hangzhou.
0. Report Issue Guide
Please run the following command and check whether the problem has been fixed:
Please search in FAQ List first, and make sure your problem has not been solved before.
Please search in the issue first, and make sure your problem had not been reported before
1. Versions
What is your wechaty version? Answer: 0.40.8
Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...) Answer: padplus
What is your wechaty-puppet-XXX(padchat/puppeteer/) version? Answer: 0.7.18
What is your node version? (run
node --version
) Answer: 13.9.0What os are you using Answer: Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-48-generic x86_64)
2. Describe the bug
After deploying new code to the production server, and restarting pm2, and waiting for WeChaty to finish initialisation i.e. after
onLogin
is called, I send a message to the chatbot and expect the chatbot to send me back 7~10 messages.Instead I will often get 4~6 messages.
What happens is that at one point, the chatbot sends a message and throws the following error and the script stops running.
3. To Reproduce
Not always reproduciable. Happens sometimes after restarting the server. The problem often disappears after the first encountering and the chatbot will behave normally.
I have the following function to perform a sequential execution of promises.
and it is used like this:
Most time everything works well. Only encounter the error sometimes.
4. Expected behavior
Most of the time the script runs properly i.e. the chatbot will send me back 7~10 messages instead of running into the error halfway.
5. Actual behavior
Sometimes the script stops halfway and throws the error. And I don't receive the remaining messages. This has only happened on my production server hosted on Aliyun.
6. Full Output Logs
Hasn't been able to reproduce after turnning on
WECHATY_LOG=silly
.Will update the issue again when the error is encountered.
7. Additional context
The Aliyun production server is hosted in Hangzhou.
[bug]