Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitpod doesn't work #285

Open
BurgerBurglar opened this issue Mar 24, 2023 · 0 comments
Open

Gitpod doesn't work #285

BurgerBurglar opened this issue Mar 24, 2023 · 0 comments

Comments

@BurgerBurglar
Copy link
Member

Important:Please file the issue follow the template, or we won't help you to solve the problem.

1. Versions

  • What is your wechaty version?
    Answer: 1.18.7

  • Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
    Answer: wechaty-puppet-wechat

  • What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
    Answer:"wechaty-puppet-wechat": "^1.18.1",

  • What is your node version? (run node --version)
    Answer: 16.13.1

  • What os are you using
    Answer: Linux on Gitpod

2. Describe the bug

Cannot run gettting started on Gitpod.

3. To Reproduce

  1. Open Gitpod
  2. Scan QR code

4. Expected behavior

Let me login

5. Actual behavior

If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:
> wechaty-getting-started@1.18.7 start
> cross-env NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node examples/ding-dong-bot.ts

21:59:38 SILL Puppet Config: WECHATY_LOG set level to silly
21:59:38 INFO Config registering process.on("unhandledRejection") for development/debug
21:59:38 VERB Config constructor()
21:59:38 VERB PoolifyMixin poolifyMixin(EventEmitter)
21:59:38 VERB WechatifyMixin wechatifyMixin(AbstractPoolifyMixin)
21:59:38 VERB ValidationMixin validationMixin(ContactMixin)      
21:59:38 VERB ValidationMixin validationMixin(ContactImplBase)   
21:59:38 VERB PoolifyMixin poolifyMixin(ContactImpl)
21:59:38 VERB ValidationMixin validationMixin(ContactSelfMixin)  
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(FavoriteMixin)     
21:59:38 VERB WechatifyMixin wechatifyMixin(EventEmitter)      
21:59:38 VERB ValidationMixin validationMixin(FriendshipMixin) 
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(ImageMixin)      
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(LocationMixin)   
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(PostMixin)       
21:59:38 VERB WechatifyMixin wechatifyMixin(EventEmitter)      
21:59:38 VERB ValidationMixin validationMixin(MessageMixin)    
21:59:38 VERB ValidationMixin validationMixin(MessageImplBase) 
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(MiniProgramMixin)
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(MomentMixin)     
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(MoneyMixin)
21:59:38 VERB PoolifyMixin poolifyMixin(EventEmitter)
21:59:38 VERB WechatifyMixin wechatifyMixin(AbstractPoolifyMixin)
21:59:38 VERB ValidationMixin validationMixin(RoomMixin)
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB ValidationMixin validationMixin(RoomInvitationMixin)
21:59:38 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:38 VERB PoolifyMixin poolifyMixin(AbstractWechatifyMixin)
21:59:38 VERB ValidationMixin validationMixin(TagMixin)
21:59:39 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:39 VERB ValidationMixin validationMixin(UrlLinkMixin)
21:59:39 VERB WechatifyMixin wechatifyMixin(EmptyBase)
21:59:39 VERB ValidationMixin validationMixin(DelayMixin)
21:59:39 VERB WechatyGErrorMixin gErrorMixin(WechatySkeleton)
21:59:39 VERB WechatifyUserModuleMixin wechatifyUserModuleMixin(GErrorMixin)
21:59:39 VERB WechatyIoMixin ioMixin(WechatifyUserModuleMixin)
21:59:39 VERB WechatyPuppetMixin puppetMixin(IoMixin)
21:59:39 VERB WechatyLoginMixin loginMixin(PuppetMixin)
21:59:39 VERB WechatyMiscMixin miscMixin(LoginMixin)
21:59:39 VERB WechatyPluginMixin pluginMixin(MiscMixin)
21:59:39 VERB ValidationMixin validationMixin(WechatyBase)
21:59:39 VERB ValidationMixin validationMixin(WechatyImplBase)
21:59:39 VERB wechaty-puppet-service monkeyPatchMetadataFromHttp2Headers()
21:59:39 VERB WechatyBuilder singleton()
21:59:39 VERB WechatyBuilder newInstance()
21:59:39 VERB WechatyLoginMixin constructor()
21:59:39 VERB WechatyPuppetMixin construct()
21:59:39 VERB WechatyIoMixin constructor()
21:59:39 VERB WechatifyUserModuleMixin constructor()
21:59:39 VERB WechatySkeleton constructor()
21:59:39 VERB StateSwitch constructor(WechatyReady, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}")
21:59:39 VERB ServiceCtl<Wechaty> constructor()
21:59:39 VERB StateSwitch constructor(Wechaty, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}")
21:59:39 VERB StateSwitch constructor(WechatyReset, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}")
21:59:39 VERB Wechaty constructor()
21:59:39 VERB WechatySkeleton on(scan, listener) registering... listenerCount: 0
21:59:39 VERB WechatySkeleton on(login, listener) registering... listenerCount: 0
21:59:39 VERB WechatySkeleton on(logout, listener) registering... listenerCount: 0
21:59:39 VERB WechatySkeleton on(message, listener) registering... listenerCount: 0
21:59:39 VERB Wechaty start()
21:59:39 VERB WechatyLoginMixin init()
21:59:39 VERB WechatyPuppetMixin init()
21:59:39 VERB WechatifyUserModuleMixin init()
21:59:39 VERB WechatySkeleton init()
21:59:39 VERB Wechaty init() Raven disabled (import("raven") failed)
21:59:39 VERB WechatifyUserModuleMixin init() initializing Wechaty User Module (WUM) ...
21:59:39 VERB WechatifyMixin wechatifyUserModule(ContactImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(ContactImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(ContactSelfImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(ContactSelfImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(DelayImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(DelayImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(FriendshipImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(FriendshipImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(ImageImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(ImageImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(LocationImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(LocationImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(MessageImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(MessageImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(MiniProgramImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(MiniProgramImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(PostImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(PostImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(RoomImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(RoomImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(RoomInvitationImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(RoomInvitationImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(TagImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(TagImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyMixin wechatifyUserModule(UrlLinkImpl)
21:59:39 VERB WechatifyMixin wechatifyUserModule(UrlLinkImpl)(Wechaty#9c320f8b-8202-41c0-8a23-a34a67c65025<>(ding-dong-bot))
21:59:39 VERB WechatifyUserModuleMixin init() initializing Wechaty User Module (WUM) ... done
21:59:39 VERB WechatyPuppetMixin init() instanciating puppet instance ...
21:59:39 VERB Puppet resolvePuppet({puppet: wechaty-puppet-wechat, puppetOptions: {}})
21:59:39 VERB Puppet resolvePuppet() resolving name "wechaty-puppet-wechat" ...
21:59:39 VERB Puppet resolvePuppetName(wechaty-puppet-wechat)
21:59:39 VERB Puppet resolvePuppetName(wechaty-puppet-wechat): ESM resolved
21:59:39 VERB Puppet resolvePuppet() resolving name "wechaty-puppet-wechat" ... done
21:59:39 VERB Puppet resolvePuppet() instanciating puppet ...
21:59:39 VERB PuppetSkeleton constructor({})
21:59:39 VERB PuppetMemoryMixin constructor()
21:59:39 VERB PuppetLoginMixin constructor()
21:59:39 VERB PuppetCacheMixin constructor()
21:59:39 VERB PuppetCacheAgent constructor()
21:59:39 VERB PuppetContactMixin constructor()
21:59:39 VERB PuppetRoomMemberMixin constructor()
21:59:39 VERB PuppetRoomMixin constructor()
21:59:39 VERB PuppetFriendshipMixin constructor()
21:59:39 VERB PuppetTagMixin constructor()
21:59:39 VERB PuppetRoomInvitationMixin constructor()
21:59:39 VERB PuppetMessageMixin constructor()
21:59:39 VERB PuppetMiscMixin constructor()
21:59:39 VERB ServiceCtl<PuppetServiceMixin> constructor()
21:59:39 VERB StateSwitch constructor(PuppetServiceMixin, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}")
21:59:39 VERB StateSwitch constructor(PuppetServiceMixinReset, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}")
21:59:39 VERB PuppetServiceMixin constructor() #0
21:59:39 VERB PuppetWatchdogAgent constructor(f02341a2-6978-4fbe-92f3-53bda5172b44)
21:59:39 VERB PuppetWatchdogAgent constructor() timeout 60 seconds
21:59:39 VERB ReadyMixin constructor()
21:59:39 VERB PuppetPostMixin constructor()
21:59:39 VERB PuppetSayableMixin constructor()
21:59:39 VERB TapMixin constructor()
21:59:39 VERB Puppet constructor({})
21:59:39 VERB PuppetWeChatBridge constructor()
21:59:39 VERB StateSwitch constructor(PuppetWeChatBridge, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}")
21:59:39 VERB PuppetWeChat initWatchdogForScan()
21:59:39 VERB Puppet resolvePuppet() instanciating puppet ... done
21:59:39 VERB WechatyPuppetMixin init() instanciating puppet instance ... done
21:59:39 VERB WechatyPuppetMixin init() setting memory ...
21:59:39 VERB PuppetMemoryMixin setMemory(ding-dong-bot)
21:59:39 VERB WechatyPuppetMixin init() setting memory ... done
21:59:39 VERB WechatyPuppetMixin init() setting up events ...
21:59:39 VERB WechatyPuppetMixin __setupPuppetEvents(Puppet<PuppetWeChat>(ding-dong-bot))
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(friendship) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(login) (listenerCount:1) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(logout) (listenerCount:1) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(message) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(post) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-invite) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-join) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-leave) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-topic) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(scan) (listenerCount:1) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(dirty) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(dong) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(error) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(heartbeat) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(ready) (listenerCount:0) registering...
21:59:39 VERB PuppetMixin __setupPuppetEvents() puppet.on(reset) (listenerCount:0) registering...
21:59:39 VERB WechatyPuppetMixin __setupPuppetEvents() ... done
21:59:39 VERB WechatyPuppetMixin init() setting up events ... done
21:59:39 VERB WechatyPuppetMixin init() emitting "puppet" event ...
21:59:39 VERB WechatyPuppetMixin init() emitting "puppet" event ... done
21:59:39 VERB ServiceCtl<Wechaty> start()
21:59:39 SILL StateSwitch <Wechaty> active() is false
21:59:39 SILL StateSwitch <Wechaty> inactive() is true
21:59:39 SILL StateSwitch <Wechaty> active() is false
21:59:39 VERB StateSwitch <Wechaty> active(pending) <- (false)
21:59:39 VERB ServiceCtl<Wechaty> start() super.start() ...
21:59:39 VERB WechatyPuppetMixin start()
21:59:39 VERB WechatyPuppetMixin start() super.start() ...
21:59:39 VERB WechatyIoMixin start()
21:59:39 VERB WechatySkeleton start()
21:59:39 VERB WechatyLoginMixin init()
21:59:39 VERB WechatyPuppetMixin init()
21:59:39 VERB WechatifyUserModuleMixin init()
21:59:39 VERB WechatySkeleton init()
21:59:39 VERB WechatifyUserModuleMixin init() Wechaty User Module (WUM)s have already wechatified: skip
21:59:39 VERB WechatyPuppetMixin init() skipped because this puppet has already been inited before.
21:59:39 VERB WechatyPuppetMixin start() super.start() ... done
21:59:39 SILL StateSwitch <WechatyReady> active() is false
21:59:39 VERB WechatyPuppetMixin start() starting puppet ...
21:59:39 VERB ReadyMixin start()
21:59:39 VERB PuppetServiceMixin start()
21:59:39 VERB ServiceCtl<PuppetServiceMixin> start()
21:59:39 SILL StateSwitch <PuppetServiceMixin> active() is false
21:59:39 SILL StateSwitch <PuppetServiceMixin> inactive() is true
21:59:39 SILL StateSwitch <PuppetServiceMixin> active() is false
21:59:39 VERB StateSwitch <PuppetServiceMixin> active(pending) <- (false)
21:59:39 VERB ServiceCtl<PuppetServiceMixin> start() super.start() ...
21:59:39 VERB PuppetCacheMixin start()
21:59:39 VERB PuppetLoginMixin start()
21:59:39 VERB PuppetMemoryMixin start()
21:59:39 VERB PuppetSkeleton start()
21:59:39 VERB PuppetCacheAgent start()
21:59:39 VERB PuppetCacheMixin start() "dirty" event listener added
21:59:39 VERB ServiceCtl<PuppetServiceMixin> start() super.start() ... done
21:59:39 VERB ServiceCtl<PuppetServiceMixin> start() this.onStart() ...
21:59:39 VERB PuppetWeChat onStart() with ding-dong-bot
21:59:39 VERB PuppetWeChat initBridge()
21:59:39 SILL StateSwitch <PuppetServiceMixin> inactive() is false
21:59:39 VERB PuppetWeChatBridge start()
21:59:39 SILL StateSwitch <PuppetWeChatBridge> active() is false
21:59:39 VERB StateSwitch <PuppetWeChatBridge> active(pending) <- (false)
21:59:39 VERB PuppetWeChatBridge initBrowser()
21:59:39 VERB PuppetWeChatBridge initBrowser() with options={"args":["--audio-output-channels=0","--disable-default-apps","--disable-translate","--disable-gpu","--disable-setuid-sandbox","--disable-sync","--hide-scrollbars","--mute-audio","--no-sandbox"],"headless":true}      
21:59:40 VERB PuppetWeChatBridge initBrowser() version: HeadlessChrome/101.0.4950.0
21:59:40 VERB PuppetWeChatBridge start() initBrowser() done
21:59:40 VERB PuppetWeChatBridge initPage()
21:59:40 VERB PuppetWeChatBridge cookieDomain([object Object],[object Object],[object Object])
21:59:40 SILL PuppetWeChatBridge cookieDomain() no valid cookie, return default hostname
21:59:40 VERB PuppetWeChatBridge initPage() before page.goto(url)
21:59:54 WARN WechatyPuppetMixin start() starting puppet ... timeout
21:59:54 WARN WechatyPuppetMixin start() puppet info: Puppet<PuppetWeChat>(ding-dong-bot)
21:59:54 VERB ServiceCtl<Wechaty> start() super.start() ... done
21:59:54 VERB ServiceCtl<Wechaty> start() this.onStart() ...
21:59:54 VERB Wechaty onStart()
21:59:54 VERB Wechaty <wechaty-puppet-wechat>(ding-dong-bot) onStart() v1.20.2 is starting...
21:59:54 VERB Wechaty id: 9c320f8b-8202-41c0-8a23-a34a67c65025
21:59:54 VERB Wechaty onStart() ... done
21:59:54 VERB ServiceCtl<Wechaty> start() this.onStart() ... done
21:59:54 SILL StateSwitch <Wechaty> active() is pending
21:59:54 VERB StateSwitch <Wechaty> active(true) <- (pending)
21:59:54 VERB ServiceCtl<Wechaty> start() ... done
21:59:54 INFO StarterBot Starter Bot Started.
21:59:57 VERB PuppetWeChatBridge initPage() after page.goto(url)
21:59:57 SILL PuppetWeChatBridge initPage() page.setCookie() 3 cookies set back
21:59:58 VERB PuppetWeChatBridge onLoad() page.url=https://wx.qq.com/
21:59:58 SILL StateSwitch <PuppetWeChatBridge> inactive() is false
21:59:58 VERB PuppetWeChatBridge readyAngular()
21:59:58 VERB PuppetWeChatBridge inject()
21:59:58 SILL PuppetWeChatBridge inject() eval(Wechaty) return code[200] message[WechatyBro Inject Done]
21:59:58 SILL PuppetWeChatBridge proxyWechaty(init)
21:59:58 SILL PuppetWeChatEvent onLog(init() scanCode: null)
21:59:58 SILL PuppetWeChatEvent onLog(inited!. ;-D)
21:59:58 SILL PuppetWeChatBridge inject() Wechaty.init() return code[200] message[WechatyBro Init Succ]
21:59:58 VERB PuppetWeChatBridge ding(ding() OK!)
21:59:58 SILL PuppetWeChatBridge proxyWechaty(ding, ding() OK!)
21:59:58 SILL PuppetWeChatEvent onLog(recv ding)
21:59:58 SILL PuppetWeChatBridge inject() ding success
21:59:58 VERB PuppetWeChatBridge clickSwitchAccount()
21:59:58 SILL PuppetWeChatBridge clickSwitchAccount() button not found
21:59:58 SILL StateSwitch <PuppetWeChatBridge> active() is pending
21:59:58 VERB StateSwitch <PuppetWeChatBridge> active(true) <- (pending)
21:59:58 VERB PuppetWeChatBridge start() initPage() done
21:59:58 VERB PuppetWeChat onStart() initBridge() done
21:59:58 VERB ServiceCtl<PuppetServiceMixin> start() this.onStart() ... done
21:59:58 SILL StateSwitch <PuppetServiceMixin> active() is pending
21:59:58 VERB StateSwitch <PuppetServiceMixin> active(true) <- (pending)
21:59:58 VERB ServiceCtl<PuppetServiceMixin> start() ... done
21:59:58 VERB PuppetWatchdogAgent start() "heartbeat" event listener added
21:59:58 VERB PuppetWatchdogAgent start() "reset" event listener added
21:59:59 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:null)
21:59:59 SILL PuppetWeChatEvent onLog(checkScan() - code change detected: from null to 0)
21:59:59 VERB PuppetWeChatEvent onScan({code: 0, url: https://login.weixin.qq.com/qrcode/gcYKFfAbXg==})
21:59:59 SILL StateSwitch <PuppetServiceMixin> inactive() is false
21:59:59 VERB PuppetWeChat onStart() throttleQueue.subscribe() new item: [object Object]
21:59:59 SILL StateSwitch <PuppetServiceMixin> inactive() is false
21:59:59 SILL StateSwitch <WechatyReady> inactive() is true
21:59:59 VERB StateSwitch <WechatyReady> inactive(true) <- (true)
21:59:59 INFO StarterBot onScan: Waiting(2) - https://wechaty.js.org/qrcode/https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FgcYKFfAbXg%3D%3D
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▀ ▀ █▀▄▄▀█▄▄█ ▄▄▄▄▄ █
█ █   █ █   █▀   █▀ ▄▀█ █   █ █
█ █▄▄▄█ █▄█▀ ▄█▄▄ ▀▀ ██ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ █ █ ▀ ▀▄▀▄█▄▄▄▄▄▄▄█
█  ▄ ██▄▀▄█ ▄   ▀ ▄ ▀█ ▀▀ ▄▄█ █
█ ▀█▄ █▄█▀  ▄▄▀▄▀ █▀█ ▄▄█▀█▄▄▀█
█ █████▄█▀▄▄▀ ▄ █▀▄█ █▄▀██▄ ▀▀█
██▄█▀▄▀▄▀█ ▄ ██ ▀█▄▄▄▄ ▀  █▄ ▄█
█▄▄▀▀ ▄▄  ███▄▄ ▄▄▀▄▄  █ ▄ ▀ ██
█▄██▀▄▀▄ ▄█▀▀██▄ ▄▀▀█▀▀▀▄▀█ ███
██▄██▄▄▄▄ ▄ ██▀▀█  ▀▀ ▄▄▄   ▀▀█
█ ▄▄▄▄▄ ██▄█▀▀▀▀▀▄█ ▄ █▄█  █▄██
█ █   █ █▀█  █▀▀ ▀▄█▀  ▄  ▀▄▄ █
█ █▄▄▄█ █ █ █ ▀▄█▀█ ▄ ██▄▀▀▄▀▄█
█▄▄▄▄▄▄▄█▄▄▄▄███▄███▄▄▄██▄██▄██

22:00:00 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:01 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:02 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:03 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:04 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:05 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:06 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:07 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:08 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:09 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:10 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:11 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:12 SILL PuppetWeChatEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:13 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:0)
22:00:13 SILL PuppetWeChatEvent onLog(checkScan() - code change detected: from 0 to 201)
22:00:13 VERB PuppetWeChatEvent onScan({code: 201, url: https://login.weixin.qq.com/qrcode/gcYKFfAbXg==})
22:00:13 SILL StateSwitch <PuppetServiceMixin> inactive() is false
22:00:13 SILL StateSwitch <WechatyReady> inactive() is true
22:00:13 VERB StateSwitch <WechatyReady> inactive(true) <- (true)
22:00:13 INFO StarterBot onScan: Scanned(3)
22:00:14 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:201)
22:00:15 SILL PuppetWeChatEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:201)
22:00:16 SILL PuppetWeChatEvent onLog(checkScan() code:200 url:https://login.weixin.qq.com/qrcode/gcYKFfAbXg== scanCode:201)
22:00:16 SILL PuppetWeChatEvent onLog(checkScan() - code change detected: from 201 to 200)
22:00:16 VERB PuppetWeChatEvent onScan({code: 200, url: https://login.weixin.qq.com/qrcode/gcYKFfAbXg==})
22:00:16 SILL StateSwitch <PuppetServiceMixin> inactive() is false
22:00:16 SILL StateSwitch <WechatyReady> inactive() is true
22:00:16 VERB StateSwitch <WechatyReady> inactive(true) <- (true)
22:00:16 INFO StarterBot onScan: Confirmed(4)
22:00:17 SILL PuppetWeChatEvent onUnload()
22:00:17 SILL PuppetWeChatEvent onLog(event unload)
22:00:17 VERB PuppetWeChatBridge onLoad() page.url=https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=AVksvB9Qr1rHahbY2U3YSCYE@qrticket_0&uuid=gcYKFfAbXg==&lang=en_US&scan=1679626812
22:00:17 SILL StateSwitch <PuppetWeChatBridge> inactive() is false
22:00:17 VERB PuppetWeChatBridge readyAngular()
22:00:17 VERB PuppetWeChatBridge inject()
22:00:18 SILL PuppetWeChatBridge inject() eval(Wechaty) return code[200] message[WechatyBro Inject Done]
22:00:18 SILL PuppetWeChatBridge proxyWechaty(init)
22:00:18 VERB PuppetWeChatBridge inject() exception: execute proxyWechaty(init) error: 503, init() without a ready angular env. stack: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env
    at Bridge.inject (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:356:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:214:7)
22:00:18 ERR PuppetWeChatBridge onLoad() exception: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env
22:00:18 ERR Config ###########################
22:00:18 ERR Config Wechaty unhandledRejection: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env
    at Bridge.inject (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:356:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:214:7) [object Promise]
22:00:18 ERR Config ###########################
22:00:18 ERR Config process.on(unhandledRejection) promise.catch(execute proxyWechaty(init) error: 503, init() without a ready angular env)
Config GError: execute proxyWechaty(init) error: 503, init() without a ready angular env
    at Bridge.inject (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:356:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:214:7) {
  code: 2,
  details: 'Error: execute proxyWechaty(init) error: 503, init() without a ready angular env\n' +
    '    at Bridge.inject (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:356:15)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
    '    at async Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:214:7)'
}
22:01:16 WARN PuppetWatchdogAgent start() reset() reason: {"data":{"code":200,"url":"https://login.weixin.qq.com/qrcode/gcYKFfAbXg=="},"timeoutMilliseconds":60000}
22:01:16 ERR Config ###########################
22:01:16 ERR Config Wechaty uncaughtException: Error: WatchdogAgent reset: lastFood: "{"data":{"code":200,"url":"https://login.weixin.qq.com/qrcode/gcYKFfAbXg=="},"timeoutMilliseconds":60000}"
    at Watchdog.reset (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet/src/agents/watchdog-agent.ts:65:33)
    at Watchdog.emit (node:events:513:28)
    at Watchdog.emit (node:domain:489:12)
    at Timeout._onTimeout (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/watchdog/src/watchdog.ts:115:12)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7) uncaughtException
22:01:16 ERR Config ###########################
22:02:16 WARN PuppetWeChat initScanWatchdog() on(reset) lastFood: [object Object], timePast: 120000
22:02:16 VERB PuppetWeChatBridge reload()
22:02:16 ERR PuppetWeChat initScanWatchdog() on(reset) exception: Error: Protocol error (Page.reload): Session closed. Most likely the page has been closed.
22:02:16 ERR PuppetWeChat initScanWatchdog() on(reset) try to recover by bridge.{quit,init}()
22:02:16 VERB PuppetWeChatBridge stop()
22:02:16 SILL StateSwitch <PuppetWeChatBridge> inactive() is false
22:02:16 VERB StateSwitch <PuppetWeChatBridge> inactive(pending) <- (false)
22:02:16 WARN PuppetWeChatBridge stop() page.close() exception: Error: Protocol error: Connection closed. Most likely the page has been closed.
22:02:16 SILL PuppetWeChatBridge stop() browser.close()-ed
22:02:16 SILL StateSwitch <PuppetWeChatBridge> inactive() is pending
22:02:16 VERB StateSwitch <PuppetWeChatBridge> inactive(true) <- (pending)
22:02:16 VERB PuppetWeChatBridge start()
22:02:16 SILL StateSwitch <PuppetWeChatBridge> active() is false
22:02:16 VERB StateSwitch <PuppetWeChatBridge> active(pending) <- (false)
22:02:16 VERB PuppetWeChatBridge initBrowser()
22:02:16 VERB PuppetWeChatBridge initBrowser() with options={"args":["--audio-output-channels=0","--disable-default-apps","--disable-translate","--disable-gpu","--disable-setuid-sandbox","--disable-sync","--hide-scrollbars","--mute-audio","--no-sandbox"],"headless":true}      
22:02:16 VERB PuppetWeChatBridge initBrowser() version: HeadlessChrome/101.0.4950.0
22:02:16 VERB PuppetWeChatBridge start() initBrowser() done
22:02:16 VERB PuppetWeChatBridge initPage()
22:02:16 VERB PuppetWeChatBridge cookieDomain([object Object],[object Object],[object Object])
22:02:16 SILL PuppetWeChatBridge cookieDomain() no valid cookie, return default hostname
22:02:16 VERB PuppetWeChatBridge initPage() before page.goto(url)
22:02:30 VERB PuppetWeChatBridge initPage() after page.goto(url)
22:02:30 SILL PuppetWeChatBridge initPage() page.setCookie() 3 cookies set back
22:02:31 VERB PuppetWeChatBridge onLoad() page.url=https://wx.qq.com/
22:02:31 SILL StateSwitch <PuppetWeChatBridge> inactive() is false
22:02:31 VERB PuppetWeChatBridge onLoad() page.url=https://wx.qq.com/
22:02:31 SILL StateSwitch <PuppetWeChatBridge> inactive() is false
22:02:31 ERR PuppetWeChatBridge onLoad() exception: Error: Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!
22:02:31 ERR PuppetWeChatBridge onLoad() exception: ProtocolError: Protocol error (Page.addScriptToEvaluateOnNewDocument): Target closed.
22:02:31 ERR Config ###########################
22:02:31 ERR Config Wechaty unhandledRejection: Error: Protocol error: Connection closed. Most likely the page has been closed.
    at assert (C:\Users\tians\Documents\Projects\getting-started\node_modules\puppeteer\src\common\assert.ts:23:21)
    at Page.close (C:\Users\tians\Documents\Projects\getting-started\node_modules\puppeteer\src\common\Page.ts:2934:11)
    at Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:221:18)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) [object Promise]
22:02:31 ERR Config ###########################
22:02:31 ERR Config process.on(unhandledRejection) promise.catch(Protocol error: Connection closed. Most likely the page has been closed.)
Config GError: Protocol error: Connection closed. Most likely the page has been closed.
    at assert (C:\Users\tians\Documents\Projects\getting-started\node_modules\puppeteer\src\common\assert.ts:23:21)
    at Page.close (C:\Users\tians\Documents\Projects\getting-started\node_modules\puppeteer\src\common\Page.ts:2934:11)
    at Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:221:18)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 2,
  details: 'Error: Protocol error: Connection closed. Most likely the page has been closed.\n' +
    '    at assert (C:\\Users\\tians\\Documents\\Projects\\getting-started\\node_modules\\puppeteer\\src\\common\\assert.ts:23:21)\n' +
    '    at Page.close (C:\\Users\\tians\\Documents\\Projects\\getting-started\\node_modules\\puppeteer\\src\\common\\Page.ts:2934:11)\n' +
    '    at Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:221:18)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:95:5)'
}
22:02:31 ERR Config ###########################
22:02:31 ERR Config Wechaty unhandledRejection: Error: Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!
    at Page.exposeFunction (C:\Users\tians\Documents\Projects\getting-started\node_modules\puppeteer\src\common\Page.ts:1393:13)
    at Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:210:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) [object Promise]
22:02:31 ERR Config ###########################
22:02:31 ERR Config process.on(unhandledRejection) promise.catch(Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!)
Config GError: Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!
    at Page.exposeFunction (C:\Users\tians\Documents\Projects\getting-started\node_modules\puppeteer\src\common\Page.ts:1393:13)
    at Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:210:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 2,
  details: "Error: Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!\n" +
    '    at Page.exposeFunction (C:\\Users\\tians\\Documents\\Projects\\getting-started\\node_modules\\puppeteer\\src\\common\\Page.ts:1393:13)\n' +
    '    at Bridge.onLoad (file:///C:/Users/tians/Documents/Projects/getting-started/node_modules/wechaty-puppet-wechat/src/bridge.ts:210:20)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:95:5)'
}

7. Additional context

Add any other context about the problem here.

I just created this account. It's an Weixin account (Mainland China number) instead of WeChat.
I have not set WeChat Pay for this account.

[bug]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant