Skip to content

function sendMessage error #44

@lijiarui

Description

@lijiarui

hi,

I use function sendMessage after accept friend request,
when the new friend request and the bot not in the same network, the program stopped and has error.

while if the new friend request and the bot are in the same network, it can work well

error log as follows:

WARN PuppetWebBrowser execute() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver
WARN PuppetWebBridge execute() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.11.6 x86_64)
WARN PuppetWebBridge proxyWechaty() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.11.6 x86_64)
ERR PuppetWebBridge send() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.11.6 x86_64)
ERR PuppetWeb send() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.11.6 x86_64)
ERR Wechaty send() exception: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.11.6 x86_64)
/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/promise.js:2291
throw error;
^

WebDriverError: unknown error: r.isBrandContact is not a function
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.11.6 x86_64)
at WebDriverError (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/error.js:27:5)
at Object.checkLegacyResponse (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/error.js:505:15)
at parseHttpResponse (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/http.js:398:13)
at doSend.then.response (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/http.js:330:11)
at process.tickCallback (internal/process/next_tick.js:103:7)
From: Task: WebDriver.executeScript()
at Driver.schedule (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/webdriver.js:414:17)
at Driver.executeScript (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/webdriver.js:563:16)
at Browser.execute (/Users/lijiarui/git/wechaty/src/puppet-web/browser.js:437:38)
at Bridge.execute (/Users/lijiarui/git/wechaty/src/puppet-web/bridge.js:346:32)
at execute.then.then (/Users/lijiarui/git/wechaty/src/puppet-web/bridge.js:332:19)
at ManagedPromise.invokeCallback
(/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/promise.js:1303:14)
at TaskQueue.execute_ (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/promise.js:2731:14)
at TaskQueue.executeNext_ (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/promise.js:2714:21)
at asyncRun (/Users/lijiarui/git/wechaty/node_modules/selenium-webdriver/lib/promise.js:2584:27)

before use sendMessage, the log shows, the parameter isn't null

INFO Bot sendMessage(Class Wechaty(web), {content: hi,我是桔子蜜,最好用的微信群助手,回复1,加入测试1群,回复2,加入测试2群, to: @323bce54d6559e43a712796d14340d68, room: null})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions