juzibot / donut-tester

40 stars 4 forks source link

When my robot deleted the friend, the friend did not delete the case to add again with an error #51

Closed channg closed 3 years ago

channg commented 3 years ago
"{\"contactId\":\"dymiloveyou\",\"hello\":\"\",\"id\":\"6098368222767267530\",\"scene\":0,\"stranger\":\"v3_020b3826fd0301000000000077a62090f0710a000000501ea9a3dba12f95f6b60a0536a1adb66632a379d32ee8c162521f792ffbf66e5874a0cf5aed3d5f168ca80c76272d932af6756a19fb0cd6225ae462@stranger\",\"ticket\":\"v4_000b708f0b0400000100000000005d4979349c038b37fa500773b75f1000000050ded0b020927e3c97896a09d47e6e9e018f050c892ed81a2411734233324950ae96aff08fa51248985dd3734d405733366605849af5c77c4f49e5c4f2128229cac1822d80683ffc9976a9b47733a31e056f01c60a0ae7884544c4075e4fd698f103ef4dc8930aac0425a64fd2ece2931b76d1500c7687bd@stranger\",\"type\":2}"
Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
    at Object.exports.createStatusError (/Users/xuezhiwen/github/mywe/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/Users/xuezhiwen/github/mywe/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/Users/xuezhiwen/github/mywe/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/Users/xuezhiwen/github/mywe/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/Users/xuezhiwen/github/mywe/node_modules/grpc/src/client_interceptors.js:847:24) {
  code: 13,
  metadata: Metadata { _internal_repr: {}, flags: 0 },
  details: 'Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility'
}
on('friendship', async friendship => {
    console.log(JSON.stringify(friendship))
    if (true) {
      friendship.accept().catch((err) => {
        console.log(err)
      })
    }
  })