getting-started icon indicating copy to clipboard operation
getting-started copied to clipboard

ERR PuppetServiceImpl grpcError() friendshipSearchHandle() rejection: puppet.friendshipSearchHandle is not a function

Open duanghuang opened this issue 2 years ago • 0 comments

运行Wechaty Gateway时,通过python运行 contact = await self.Friendship.search(weixin = '183xxxxxxx')时报如下错误

20:30:06 VERB StateSwitch <WechatyReady> active(true) <- (true)
20:30:06 VERB EventStreamManager grpcEmit(EVENT_TYPE_READY[23], {"data":"ready"})
20:30:06 WARN PuppetServiceImpl friendshipSearchWeixin() is deprecated, use friendshipSearchHandle() instead. Error
    at friendshipSearchWeixin (file:///usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:358:127)
    at Object.friendshipSearchWeixin (file:///usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (/usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/@grpc/grpc-js/build/src/server.js:688:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
20:30:06 VERB PuppetServiceImpl friendshipSearchHandle()
20:30:06 ERR PuppetServiceImpl grpcError() friendshipSearchHandle() rejection: puppet.friendshipSearchHandle is not a function
TypeError: puppet.friendshipSearchHandle is not a function
    at friendshipSearchHandle (file:///usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:369:48)
    at Object.friendshipSearchHandle (file:///usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at friendshipSearchWeixin (file:///usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:359:37)
    at Object.friendshipSearchWeixin (file:///usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (/usr/local/Cellar/nvm/0.39.0/versions/node/v16.10.0/lib/node_modules/wechaty/node_modules/@grpc/grpc-js/build/src/server.js:688:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
20:30:10 VERB EventStreamManager grpcEmit(EVENT_TYPE_READY[23], {"data":"ready"})

运行npm ls wechaty wechaty-puppet wechaty-grpc wechaty-puppet-service得到

├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
  ├─┬ [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ └─┬ [email protected]
  │   ├── [email protected] deduped
  │   └─┬ [email protected]
  │     ├─┬ [email protected]
  │     │ ├── [email protected]
  │     │ └── [email protected] deduped
  │     ├─┬ [email protected]
  │     │ └── [email protected] deduped
  │     └── [email protected] deduped
  └── [email protected]


duanghuang avatar Sep 01 '22 12:09 duanghuang