WebDriverError: unknown error: r.isBrandContact is not a function
Created by: huan
A strange bug: ( with docker image v0.5.1 & v0.5.9 )
Today, a wechaty runtime run ok at the start, but after 2-3 hours, it can not accept friend request anymore. after a while, it can accept the friend request, but can not send any message.
switch from v0.5.1 to v0.5.9 still has this issue.
After turn on the log, it was found that when call WechatyBro.send()
, it shows the follow exception: (I guess the FriendRequest.accept()
has the similar exception before)
At last, after we restarted the runtime serval times again, the bug was gone. All works well again... wired...
Maybe it's because the Angular environment is not inited right?
To debug...
WARN PuppetWebBrowser execute() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.92)
(Driver i, WebDriverError: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.22 (5e2d5494d735a71aa5c2e7ef9bf5ce96945e92e9),platform=Linux 3.16.0-4-amd64 x86_64)
at WebDriverError (/wechaty/node_modules/selenium-webdriver/lib/error.js:27:5)
at Object.checkLegacyResponse (/wechaty/node_modules/selenium-webdriver/lib/error.js:505:15)
at parseHttpResponse (/wechaty/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/wechaty/node_modules/selenium-webdriver/lib/http.js:440:13)
at process._tickDomainCallback (internal/process/next_tick.js:129:7)
From: Task: WebDriver.executeScript()
at Driver.schedule (/wechaty/node_modules/selenium-webdriver/lib/webdriver.js:815:17)
at Driver.executeScript (/wechaty/node_modules/selenium-webdriver/lib/webdriver.js:886:16)
at BrowserDriver.executeScript (/wechaty/src/puppet-web/browser-driver.ts:290:66)
at Browser.<anonymous> (/wechaty/src/puppet-web/browser.ts:269:46)
at next (native)
at /wechaty/dist/src/puppet-web/browser.js:7:65
at __awaiter (/wechaty/dist/src/puppet-web/browser.js:3:12)
at Browser.execute (/wechaty/dist/src/puppet-web/browser.js:216:16)
at Bridge.execute (/wechaty/src/puppet-web/bridge.ts:358:32)
at execute.then.then (/wechaty/src/puppet-web/bridge.ts:344:19)
WARN PuppetWebBridge execute() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.22 (5e2d5494d735a71aa5c2e7ef9bf5ce96945e92e9),platform=Linux 3.16.0-4-amd64 x86_64)
WARN PuppetWebBridge proxyWechaty() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.22 (5e2d5494d735a71aa5c2e7ef9bf5ce96945e92e9),platform=Linux 3.16.0-4-amd64 x86_64)
ERR PuppetWebBridge send() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.22 (5e2d5494d735a71aa5c2e7ef9bf5ce96945e92e9),platform=Linux 3.16.0-4-amd64 x86_64)
ERR PuppetWeb send() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.92)