有赞新零售社区

发帖
API使用问题»2018.12.29号下载的SDK问题

2018.12.29号下载的SDK问题

1 2019-01-08 4649 浏览 13 评论 | 只看楼主 [打印]
12.29号下载的sdk  压缩包写着2.0.2的版本  实际版本是2.1.0  每次调用api都会报错  没有影响api正常调用  今天发现这个sdk又被下架了  这个sdk有什么问题吗   已经放到正式服务器使用了
用手机打开
收藏 ··· 回复
    sdk是不断的在升级更新,如果您在接口使用上没有问题可以继续使用,如果有问题可以下载最新的sdk:https://open.youzan.com/docs/guide/3399/3411

      1 青铜   2019-01-08 | 只看该作者
      导演 发表于 2019-1-8 10:49
      sdk是不断的在升级更新,如果您在接口使用上没有问题可以继续使用,如果有问题可以下载最新的sdk:https:// ...


      你提供链接里下载的sdk都和api文档对不上     这个链接里的sdk    在交易订单详情4.0接口中的订单发货详情结构体中没有api文档上的物流包裹详情

        1 青铜   2019-01-08 | 只看该作者
        lass="quote 15">
        导演 发表于 2019-1-8 10:49
        sdk是不断的在升级更新,如果您在接口使用上没有问题可以继续使用,如果有问题可以下载最新的sdk:https:// ...


        昨天查看日志时   发现调用 youzan.item.quantity.update   全量或增量方式更新SKU库存  这个接口时出现错误,
        错误信息如下,这个错误是偶发性的  目前只发现有1次调用时出现   invoke时的参数完全都是按照规则传递的2019-01-07 16:07:46.862 [http-nio-8058-exec-50] ERROR o.springframework.boot.web.support.ErrorPageFilter - Forwarding to error page from request [/item/ZJItemStockToYz] due to exception [com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
        at [Source: (String)"<!DOCTYPE html>
        <!--[if IEMobile 7 ]>    <html class="no-js iem7"> <![endif]-->
        <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
        <head>
            <meta charset="utf-8">
            <meta name="keywords" content="有赞,微信商城,粉丝营销,微信商城运营" />
            <meta name="description" content="有赞是帮助商家在微信上搭建微信商城的平台,提供店铺、商品、订单、物流、消息和客户的管理模块,同时还提供丰富的营销应用和活动插件。" />
            <meta name="HandheldFriendly" content="True">
            <meta name="MobileOptimized" content="320">
            <meta name="viewport" content="width="[truncated 6876 chars]; line: 1, column: 2]]
        com.youzan.open.sdk.exception.KDTException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
        at [Source: (String)"<!DOCTYPE html>
        <!--[if IEMobile 7 ]>    <html class="no-js iem7"> <![endif]-->
        <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
        <head>
            <meta charset="utf-8">
            <meta name="keywords" content="有赞,微信商城,粉丝营销,微信商城运营" />
            <meta name="description" content="有赞是帮助商家在微信上搭建微信商城的平台,提供店铺、商品、订单、物流、消息和客户的管理模块,同时还提供丰富的营销应用和活动插件。" />
            <meta name="HandheldFriendly" content="True">
            <meta name="MobileOptimized" content="320">
            <meta name="viewport" content="width="[truncated 6876 chars]; line: 1, column: 2]
                at com.youzan.open.sdk.util.json.JsonUtils.toBean(JsonUtils.java:56)
                at com.youzan.open.sdk.client.core.DefaultYZClient.invoke(DefaultYZClient.java:114)
                at com.atsc.youzan.item.service.ItemService.yzItemQuantityUpdate(ItemService.java:327)
                at com.atsc.youzan.item.service.ItemInfoService.yzItemStockUpdate(ItemInfoService.java:200)
                at com.atsc.youzan.item.service.ItemInfoService$$FastClassBySpringCGLIB$$f3472788.invoke(<generated>)
                at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
                at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:669)
                at com.atsc.youzan.item.service.ItemInfoService$$EnhancerBySpringCGLIB$$221934b7.yzItemStockUpdate(<generated>)
                at com.atsc.youzan.zj.item.service.ZjItemInfoService.ZJItemStockToYz(ZjItemInfoService.java:882)
                at com.atsc.youzan.zj.item.service.ZjItemInfoService$$FastClassBySpringCGLIB$$11298366.invoke(<generated>)
                at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
                at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:669)
                at com.atsc.youzan.zj.item.service.ZjItemInfoService$$EnhancerBySpringCGLIB$$8371a311.ZJItemStockToYz(<generated>)
                at com.atsc.youzan.zj.item.controller.ZjItemInfoController.zjItemStockToYz(ZjItemInfoController.java:44)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
                at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
                at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
                at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
                at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
                at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
                at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
                at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
                at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
                at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
                at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)
                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:115)
                at org.springframework.boot.web.support.ErrorPageFilter.access$000(ErrorPageFilter.java:59)
                at org.springframework.boot.web.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:90)
                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                at org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:108)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
                at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
                at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
                at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:748)
        Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
        at [Source: (String)"<!DOCTYPE html>
        <!--[if IEMobile 7 ]>    <html class="no-js iem7"> <![endif]-->
        <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
        <head>
            <meta charset="utf-8">
            <meta name="keywords" content="有赞,微信商城,粉丝营销,微信商城运营" />
            <meta name="description" content="有赞是帮助商家在微信上搭建微信商城的平台,提供店铺、商品、订单、物流、消息和客户的管理模块,同时还提供丰富的营销应用和活动插件。" />
            <meta name="HandheldFriendly" content="True">
            <meta name="MobileOptimized" content="320">
            <meta name="viewport" content="width="[truncated 6876 chars]; line: 1, column: 2]
                at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
                at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:663)
                at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:561)
                at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1892)
                at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:747)
                at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4129)
                at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3988)
                at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2992)
                at com.youzan.open.sdk.util.json.JsonUtils.toBean(JsonUtils.java:54)
                ... 84 common frames omitted



          1 发表于 2019-1-8 11:08
          你提供链接里下载的sdk都和api文档对不上     这个链接里的sdk    在交易订单详情4.0接口中的订单发货详 ...


          很抱歉!这个sdk确少字段问题,预计1月10号下午修复

            1 发表于 2019-1-8 11:15
            昨天查看日志时   发现调用 youzan.item.quantity.update   全量或增量方式更新SKU库存  这个接口时出现错 ...


            client.invoke改成client.execute方法试试

              1 青铜   2019-01-09 | 只看该作者
              导演 发表于 2019-1-8 17:42
              client.invoke改成client.execute方法试试


              调用接口youzan.trade.get时出现错误如下,这个错误是在什么情况下会报呢   参数是  E20190108170932044000029

              2019-01-08 17:17:48.742 [DefaultMessageListenerContainer-1] ERROR
              com.youzan.open.sdk.exception.KDTException: ErrorResponse{code='51003', msg='系统异常'}
                      at com.youzan.open.sdk.client.core.DefaultYZClient.handleError(DefaultYZClient.java:158)
                      at com.youzan.open.sdk.client.core.DefaultYZClient.invoke(DefaultYZClient.java:130)
                      at com.atsc.youzan.order.service.OrderService.yzOrderGet(OrderService.java:108)
                      at com.atsc.youzan.order.service.OrderInitService.GetYZOrder(OrderInitService.java:129)
                      at com.atsc.youzan.order.service.OrderInitService.loadtokenorder(OrderInitService.java:70)
                      at com.atsc.youzan.activemq.Order.listenYzOrderInitPush(Order.java:252)
                      at sun.reflect.GeneratedMethodAccessor1289.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:498)
                      at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:180)
                      at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:112)
                      at org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:104)
                      at org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:69)
                      at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:719)
                      at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:679)
                      at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:649)
                      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:317)
                      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:255)
                      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1166)
                      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1158)
                      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1055)
                      at java.lang.Thread.run(Thread.java:748)


                1 发表于 2019-1-8 19:36
                调用接口youzan.trade.get时出现错误如下,这个错误是在什么情况下会报呢   参数是  E201901081709320440 ...


                2019-01-08 17:07~2019-01-0817:33订单接口升级影响部分商家调用报错,昨天已经恢复。

                  1 青铜   2019-01-22 | 只看该作者
                  导演 发表于 2019-1-9 09:55
                  2019-01-08 17:07~2019-01-0817:33订单接口升级影响部分商家调用报错,昨天已经恢复。 ...


                  之前说过我下载的12.29号的sdk,昨天下午13点左右,又频繁出现了在4层中我描述的问题,然后查看sdk源码发现    12.29号下载的2.1.0的sdk中api调用连接是  http://aebd-proxy.s.qima-inc.com/api   而现在新下载的sdk中api调用连接是 https://open.youzan.com/api,请问我遇到的错误是不是和这个调用地址有关系

                    1 发表于 2019-1-21 19:19
                    之前说过我下载的12.29号的sdk,昨天下午13点左右,又频繁出现了在4层中我描述的问题,然后查看sdk源码发 ...


                    您现在用的是最新的SDK吗,如果是新的需要使用:https://open.youzan.com/api/

                      1 青铜   2019-01-22 | 只看该作者
                      有赞-程志 发表于 2019-1-21 20:12
                      您现在用的是最新的SDK吗,如果是新的需要使用:https://open.youzan.com/api/


                      我现在用的是12.29号下载的那个sdk   写着版本是2.1.0      我就想知道我在4层中出现的错误是否跟这个sdk版本有关系

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

                        本版积分规则

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

                        • 评分

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

                        复制成功