Closed devoutDisciple closed 2 years ago
调用refunds退款接口的时候报错: TypeError: Cannot read property 'text' of null at Pay. (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:226:98) at step (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:44:23) at Object.throw (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:25:53) at rejected (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:17:65) at processTicksAndRejections (internal/process/task_queues.js:95:5)
调用参数: {"transaction_id":"420xxxxxxx877351","out_refund_no":"BJY1Exxxxxxxxxx47949","notify_url":"https://www.baidu.com/xxxxxxx/xxxxxxx","amount":{"refund":20,"total":20,"currency":"CNY"}}
这个错误好像是偶发的,不知道什么原因 你用的npm 包是那个版本的,这个问题有点像之前 superagent 请求报错,后面在1.3.3里加上了请求头 'Accept-Encoding': 'gzip' 就好了
调用refunds退款接口的时候报错: TypeError: Cannot read property 'text' of null at Pay. (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:226:98) at step (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:44:23) at Object.throw (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:25:53) at rejected (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:17:65) at processTicksAndRejections (internal/process/task_queues.js:95:5) 调用参数: {"transaction_id":"420xxxxxxx877351","out_refund_no":"BJY1Exxxxxxxxxx47949","notify_url":"https://www.baidu.com/xxxxxxx/xxxxxxx","amount":{"refund":20,"total":20,"currency":"CNY"}} 这个错误好像是偶发的,不知道什么原因 你用的npm 包是那个版本的,这个问题有点像之前 superagent 请求报错,后面在1.3.3里加上了请求头 'Accept-Encoding': 'gzip' 就好了
用的1.3.0版本的,我升级下版本试试
调用refunds退款接口的时候报错: TypeError: Cannot read property 'text' of null at Pay. (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:226:98)
at step (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:44:23)
at Object.throw (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:25:53)
at rejected (/Users/zhangzhen/baomu/baomu_frontBack/node_modules/wechatpay-node-v3/dist/index.js:17:65)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
调用参数: {"transaction_id":"420xxxxxxx877351","out_refund_no":"BJY1Exxxxxxxxxx47949","notify_url":"https://www.baidu.com/xxxxxxx/xxxxxxx","amount":{"refund":20,"total":20,"currency":"CNY"}}
这个错误好像是偶发的,不知道什么原因