有赞新零售社区

发帖
API使用问题»请求接口 未返回数据问题

[API调用-商品/交易] 请求接口 未返回数据问题

精华学校 2022-06-22 1152 浏览 5 评论 | 只看楼主 [打印]
有赞技术老师:

我们通过有赞API接口每日对订单导出,生成excel文件的定时任务,定时每天早上9:30。最近好几次没收到定时任务邮件(发现未生成邮件后,让技术手动再触发后成功生成文档),关于定时任务技术反馈是“请求了接口,却没正确返回数据信息”,最近两周发生了3次定时任务未生成excel的情况。此通过接口调取订单数据的定时任务使用了将近一年,之前一直比较稳定,我们也没做过调整,以下是今日的触发日志,请协助解决。谢谢

序号21,开始执行有赞订单:E20220621205924081200059
序号21,结束执行有赞订单:E20220621205924081200059
序号22,开始执行有赞订单:E20220621205704057506239
序号22,结束执行有赞订单:E20220621205704057506239
序号23,开始执行有赞订单:E20220621204402062906149
java.io.IOException: Server returned HTTP response code: 502 for URL: https://open.youzanyun.com/api/y ... 9e6cdb66fb5400bed36
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1897)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1495)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at com.jinghua.common.web.easySell.HttpPost.https(HttpPost.java:98)
at com.jinghua.common.service.youzan.YouZanService.getCity(YouZanService.java:665)
at com.jinghua.common.service.youzan.YouZanService.getOrderDetailList(YouZanService.java:286)
at com.jinghua.common.service.youzan.YouZanService.getOrderListAndSendMail(YouZanService.java:77)
at com.jinghua.common.service.youzan.YouZanService$$FastClassByCGLIB$$a28755c4.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
at com.jinghua.common.service.youzan.YouZanService$$EnhancerByCGLIB$$e52be7c7.getOrderListAndSendMail(<generated>)
at com.jinghua.common.web.quartz.QuartzController.youzanGetOrderListQuartz(QuartzController.java:3748)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMet

本帖最后由 精华学校 于 2022-6-23 13:42 编辑
用手机打开
收藏 ··· 回复
       有赞云团队   2022-06-22 | 只看该作者
    您好,若您是请求接口有问题,请给下trace_id,这边排查下。

      精华学校 青铜   2022-06-22 | 只看该作者
      yz7-0a34f817-1655256665611-6648

           有赞云团队   2022-06-23 | 只看该作者
        您好,您提供的trace_id这边已查不到日志了,请给下7天内问题复现调用接口的trace_id.

          精华学校 青铜   2022-06-23 | 只看该作者
          yz7-0a34f82e-1655947851070-326152

          这是今天的,报错信息是token不存在

               有赞云团队   2022-06-23 | 只看该作者
            您好,token不存在建议您参考文档排查下:https://doc.youzanyun.com/resource/doc/3389/3389

              1跳至
              您需要登录后才可以回帖 登录 | 立即注册

              本版积分规则

              复制链接
              新浪微博
              QQ空间
              微信扫码
              • 回复

              • 评分

              客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

              复制成功