收藏
回答

微信拉取账单出错无详细报错信息

请求地址:https://api.mch.weixin.qq.com/v3/bill/tradebill?bill_date=2025-05-21&bill_type=ALL

报错信息:org.quartz.JobExecutionException: WxPayException(customErrorMsg=null, returnCode=null, returnMsg=null, resultCode=null, errCode=null, errCodeDes=null, xmlString=null)

at cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker.handleException(JobHandlerInvoker.java:102)

at cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker.executeInternal(JobHandlerInvoker.java:66)

at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)

at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

Caused by: com.github.binarywang.wxpay.exception.WxPayException: null

at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.requestV3(WxPayServiceApacheHttpImpl.java:238)

at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.getV3(WxPayServiceApacheHttpImpl.java:249)

at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.applyTradeBill(BaseWxPayServiceImpl.java:1117)

at cn.iocoder.yudao.framework.pay.core.client.impl.weixin.WxPubPayClient.applyTradeBill(WxPubPayClient.java:80)

at cn.iocoder.yudao.module.pay.api.weixin.WeiXinBillImpl.getWeiXinBillUrl(WeiXinBillImpl.java:26)

at cn.iocoder.yudao.module.property.job.warning.bill.BillJob.execute(BillJob.java:31)

at cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker.executeInternal(JobHandlerInvoker.java:74)

at cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker.executeInternal(JobHandlerInvoker.java:57)

... 3 common frames omitted

Caused by: java.lang.NullPointerException: null

at com.github.binarywang.wxpay.v3.auth.WxPayValidator.validate(WxPayValidator.java:42)

at com.github.binarywang.wxpay.v3.SignatureExec.executeWithSignature(SignatureExec.java:85)

at com.github.binarywang.wxpay.v3.SignatureExec.execute(SignatureExec.java:60)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)

at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.requestV3(WxPayServiceApacheHttpImpl.java:219)

... 10 common frames omitted

回答关注问题邀请回答
收藏

1 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    2025-05-27

    用的谁的SDK去问谁,接口不可能没有明显报错的

    2025-05-27
    有用
    回复
登录 后发表内容