wechaty / grpc

gRPC Service & Protocol Buffers for Wechaty Puppet
https://wechaty.github.io/grpc/
Apache License 2.0
25 stars 22 forks source link

Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error with donut-tester #103

Open suntong opened 3 years ago

suntong commented 3 years ago

Using donut-tester, I'm getting

(node:3706348) UnhandledPromiseRejectionWarning: Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
    at Object.exports.createStatusError (/path/to/nodejs/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:847:24)

This is all that I can get, I'll see if I can get more debug info around it...

suntong commented 3 years ago

Caught it, just by sending/receiving a 公众号文章.

21:47:55 SILL Puppet contactPayload(wxid_q73..m22) cache SET
21:47:55 SILL Contact ready() @ Puppet#0<PuppetHostie>(default) with id="wxid_dt..v22"
21:47:55 SILL Contact ready() isReady() true
21:47:55 VERB Puppet selfId()
21:47:55 SILL Message toString() for message type: Url(14)
21:47:55 SILL Message toString() for message type: Url(14)
21:47:55 VERB Room topic()
21:47:55 VERB Puppet selfId()
21:47:55 VERB Message toFileBox()
21:47:55 VERB PuppetHostie messageFile(522819192054739578)
21:47:56 ERR Config ###########################
21:47:56 ERR Config unhandledRejection: Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
    at Object.exports.createStatusError (/path/to/nodejs/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:847:24) [object Promise]
21:47:56 ERR Config ###########################
21:47:56 ERR Config process.on(unhandledRejection) promise.catch(13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility)
Config { Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
    at Object.exports.createStatusError (/path/to/nodejs/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/path/to/nodejs/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/path/to/nodejs/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' }
21:48:24 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_HEARTBEAT(1), payload:"{"data":"[object Object]","timeout":60000}"})

I'm sure there are much more ways to trigger it, as my log screen if full of such exceptions.