Please search in FAQ List first, and make sure your problem has not been solved before.
Please search in the issue first, and make sure your problem had not been reported before
1. Versions
What is your wechaty version?
Answer:^0.51.11
What is your wechaty-puppet-donut version?
Answer:"wechaty-puppet-hostie": "^0.13.1",
What is your node version? (run node --version)
Answer:v12.10.0
What os are you using
Answer:macOS Big Sur 11.1
2. Describe the bug
Give a clear and concise description of what the bug is.
My Bot need to accept friendship request automatically, When listening for a friend request, process the pass friend request with friendship.accept() will throw the error below:
17:15:23 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_FRIENDSHIP(17), payload:"{"friendshipId":"friendshipId"}"})
17:15:23 SILL Wechaty memoryCheck() free: 82 MB, require: 4 MB
17:15:23 VERB Friendship constructor(id=friendshipId)
17:15:23 VERB Puppet friendshipPayload(friendshipId)
17:15:23 SILL Puppet friendshipPayloadCache(id=friendshipId) @ Puppet#0(test)
17:15:23 SILL Puppet friendshipPayloadCache(friendshipId) cache MISS
17:15:23 VERB PuppetHostie friendshipRawPayload(friendshipId)
17:15:23 SILL Contact ready() @ Puppet#0(test) with id="id"
17:15:23 SILL Contact ready() isReady() true
received friend event from 木兰,friend say 你好
17:15:26 VERB Friendship accept()
17:15:26 SILL Friendship accept() to id
17:15:26 VERB PuppetHostie friendshipAccept(*****friendshipId)
Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
at Object.exports.createStatusError (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:1209:28)
at InterceptingListener._callNext (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/Users/sunshinearea/Documents/workCopy/rh_wechaty/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'
}
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
Steps to reproduce the behavior:
run '...'
...
...
4. Expected behavior
Give a clear and concise description of what you expected to happen.
5. Actual behavior
If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.
6. Full Output Logs
Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)
We need full log instead of log screenshot or log fragments!
Show Logs
17:15:23 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_FRIENDSHIP(17), payload:"{"friendshipId":"*****friendshipId"}"})
17:15:23 SILL Wechaty memoryCheck() free: 82 MB, require: 4 MB
17:15:23 VERB Friendship constructor(id=*****friendshipId)
17:15:23 VERB Puppet friendshipPayload(*****friendshipId)
17:15:23 SILL Puppet friendshipPayloadCache(id=*****friendshipId) @ Puppet#0(test)
17:15:23 SILL Puppet friendshipPayloadCache(*****friendshipId) cache MISS
17:15:23 VERB PuppetHostie friendshipRawPayload(*****friendshipId)
17:15:23 SILL Contact ready() @ Puppet#0(test) with id="****id"
17:15:23 SILL Contact ready() isReady() true
received friend event from 木兰,friend say 你好
17:15:26 VERB Friendship accept()
17:15:26 SILL Friendship accept() to ****id
17:15:26 VERB PuppetHostie friendshipAccept(*****friendshipId)
Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
at Object.exports.createStatusError (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:1209:28)
at InterceptingListener._callNext (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/Users/sunshinearea/Documents/workCopy/rh_wechaty/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'
}
```shell
$ WECHATY_LOG=silly node yourbot.js
Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:
```
0. Report Issue Guide
Please run the following command and check whether the problem has been fixed:
Please search in FAQ List first, and make sure your problem has not been solved before.
Please search in the issue first, and make sure your problem had not been reported before
1. Versions
What is your wechaty version? Answer:^0.51.11
What is your wechaty-puppet-donut version? Answer:"wechaty-puppet-hostie": "^0.13.1",
What is your node version? (run
node --version
) Answer:v12.10.0What os are you using Answer:macOS Big Sur 11.1
2. Describe the bug
Give a clear and concise description of what the bug is. My Bot need to accept friendship request automatically, When listening for a friend request, process the pass friend request with friendship.accept() will throw the error below:
17:15:23 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_FRIENDSHIP(17), payload:"{"friendshipId":"friendshipId"}"}) 17:15:23 SILL Wechaty memoryCheck() free: 82 MB, require: 4 MB 17:15:23 VERB Friendship constructor(id=friendshipId) 17:15:23 VERB Puppet friendshipPayload(friendshipId) 17:15:23 SILL Puppet friendshipPayloadCache(id=friendshipId) @ Puppet#0(test)
17:15:23 SILL Puppet friendshipPayloadCache(friendshipId) cache MISS
17:15:23 VERB PuppetHostie friendshipRawPayload(friendshipId)
17:15:23 SILL Contact ready() @ Puppet#0(test) with id="id"
17:15:23 SILL Contact ready() isReady() true
received friend event from 木兰,friend say 你好
17:15:26 VERB Friendship accept()
17:15:26 SILL Friendship accept() to id
17:15:26 VERB PuppetHostie friendshipAccept(*****friendshipId)
Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
at Object.exports.createStatusError (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:1209:28)
at InterceptingListener._callNext (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/Users/sunshinearea/Documents/workCopy/rh_wechaty/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'
}
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
Steps to reproduce the behavior:
4. Expected behavior
Give a clear and concise description of what you expected to happen.
5. Actual behavior
If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.
6. Full Output Logs
Set env
WECHATY_LOG=silly
in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)We need full log instead of log screenshot or log fragments!
Show Logs 17:15:23 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_FRIENDSHIP(17), payload:"{"friendshipId":"*****friendshipId"}"}) 17:15:23 SILL Wechaty memoryCheck() free: 82 MB, require: 4 MB 17:15:23 VERB Friendship constructor(id=*****friendshipId) 17:15:23 VERB Puppet friendshipPayload(*****friendshipId) 17:15:23 SILL Puppet friendshipPayloadCache(id=*****friendshipId) @ Puppet#0(test)
17:15:23 SILL Puppet friendshipPayloadCache(*****friendshipId) cache MISS
17:15:23 VERB PuppetHostie friendshipRawPayload(*****friendshipId)
17:15:23 SILL Contact ready() @ Puppet#0(test) with id="****id"
17:15:23 SILL Contact ready() isReady() true
received friend event from 木兰,friend say 你好
17:15:26 VERB Friendship accept()
17:15:26 SILL Friendship accept() to ****id
17:15:26 VERB PuppetHostie friendshipAccept(*****friendshipId)
Error: 13 INTERNAL: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
at Object.exports.createStatusError (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:1209:28)
at InterceptingListener._callNext (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/Users/sunshinearea/Documents/workCopy/rh_wechaty/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/Users/sunshinearea/Documents/workCopy/rh_wechaty/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'
}
```shell $ WECHATY_LOG=silly node yourbot.js Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages Answer: ```7. Additional context
Add any other context about the problem here.
[bug]