WechatError:-6
daizhenhong opened this issue · 1 comments
1.确定已经调用了registerApp接口,并且返回true
2.调用
let options = { type: "imageUrl", title: "web image", description: "share web image to time line", mediaTagName: "email signature", messageAction: undefined, messageExt: undefined, imageUrl: "http://www.ncloud.hk/email-signature-262x100.png", } let response = await WechatUtil.shareToTimeline(options)
执行后,微信会一闪而过,然后报错信息如下:
YellowBox.js:67 Possible Unhandled Promise Rejection (id: 1): WechatError: -6 WechatError: -6 at EventEmitter.<anonymous> (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:129779:18) at EventEmitter.g (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:130071:18) at EventEmitter.emit (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:129995:19) at blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:129670:13 at RCTDeviceEventEmitter.emit (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:5400:37) at MessageQueue.__callFunction (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:4695:44) at blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:4468:17 at MessageQueue.__guard (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:4649:13) at MessageQueue.callFunctionReturnFlushedQueue (blob:http://localhost:8081/b46d8aac-d22a-4e73-bd69-0ba38ad8e0f5:4467:14) at http://localhost:8081/debugger-ui/debuggerWorker.js:72:58
Your Environment
android平台
software | version |
---|---|
react-native-wechat | ^1.9.12 |
react-native | 0.57.1 |
node | 12.1.0 |
npm or yarn | 1.17.3 |
微信缓存有问题,卸载重装后好了