-
Notifications
You must be signed in to change notification settings - Fork 46
Unexpected Exit: WebSocket reset can not be recovered automatically #160
Comments
This problem occurred again when watchdog timeout.
|
All the above logs caused the Wechaty program exit at last. |
|
Again:
|
Seems like this is duplicate with #163 Close for now, please reopen if this is not same issue as the issue pasted above. |
No, it's not a duplicate.
|
Okay, thanks for the explanation. |
Again:
|
|
I'm trying to debug this issue and I saw an error at the end of line saying Then I searched this error, seems like this is related to a Here is the end of my logs 16:16:49 VERB PuppetPadchat stop()
16:16:49 SILL StateSwitch <PuppetPadchat> off() is false
16:16:49 SILL StateSwitch <PuppetPadchat> off() is false
16:16:49 VERB StateSwitch <PuppetPadchat> off(pending) <- (false)
16:16:49 VERB PuppetPadchat logout()
16:16:49 SILL Contact ready() @ Puppet#0<PuppetPadchat>(test)/PuppetPadchat#0
16:16:49 SILL Contact ready() isReady() true
16:16:49 VERB PuppetPadchatManager logout()
16:16:49 VERB PuppetPadchatManager releaseCache()
16:16:49 SILL PuppetPadchatManager releaseCache() closing caches ...
Logout: Contact<一颗树>
zsh: segmentation fault BROLOG_LEVEL=silly ts-node bot.ts @zixia What did you do to avoid the error before? I've tested it several times, calling My minimal code is here: import { Wechaty } from 'wechaty';
import { PuppetPadchat } from 'wechaty-puppet-padchat';
const puppet = new PuppetPadchat({
token: 'my-secret-token'
});
const bot = new Wechaty({
profile: 'test',
puppet
});
bot
.on('scan', (qrcode, status) => {
generate(qrcode, { small: true })
const qrcodeImageUrl = [
'https://api.qrserver.com/v1/create-qr-code/?data=',
encodeURIComponent(qrcode),
].join('')
console.log(`[${status}] ${qrcodeImageUrl}\nScan QR Code above to log in: `)
})
.on('login', async user => {
console.log(`Login: ${user}`);
setTimeout(() => bot.reset(), 10000)
})
.start() |
@windmemory Yes, it's related with the flash-store. According to huan/flash-store#13 , if we use So at last, I switched it back to the |
I can switch to use So please feel free to let me know if you believe it's necessary. |
What if I switch the |
Doesn't work :( |
Seems like we need to switch back to I tested with |
@windmemory Yes, please use flash-store@0.7 for your environment. There are no much changes between the v0.7 with the latest version, except the nosql-leveldb related changes. |
Great! I will revert the version of Thanks! |
The text was updated successfully, but these errors were encountered: