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

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

Open
duanghuang opened this issue Sep 1, 2022 · 0 comments

Comments

@duanghuang
Copy link

运行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得到

├─┬ wechaty-puppet-padlocal@0.2.22
│ └── wechaty-puppet@0.33.9
└─┬ wechaty@1.11.33
  ├─┬ wechaty-puppet-service@1.11.3
  │ ├── wechaty-grpc@0.33.6
  │ ├── wechaty-puppet@1.20.2
  │ └─┬ wechaty-redux@1.20.2
  │   ├── wechaty-puppet@1.20.2 deduped
  │   └─┬ wechaty@1.20.2
  │     ├─┬ wechaty-puppet-service@1.19.8
  │     │ ├── wechaty-grpc@1.5.2
  │     │ └── wechaty-puppet@1.20.2 deduped
  │     ├─┬ wechaty-puppet-wechat4u@1.11.1
  │     │ └── wechaty-puppet@1.20.2 deduped
  │     └── wechaty-puppet@1.20.2 deduped
  └── wechaty-puppet@1.11.17


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