有赞新零售社区

发帖
API使用问题»trades.sold接口Read timed out错误

trades.sold接口Read timed out错误

26eb43266965 2018-09-12 945 浏览 0 评论 | 只看楼主 [打印]
youzan.trades.sold 分页获取,前4页一定成功,第5页就一定失败

环境:
OPEN SDK version :2.0.2
Java SDK version : 1.8
API version : 3.0.0

Exception :
java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out

Logs:
2018-09-12 13:45:55 890 | DEBUG | ([main] [org.apache.http.client.protocol.RequestAddCookies] process:122) | CookieSpec selected: default
2018-09-12 13:45:55 890 | DEBUG | ([main] [org.apache.http.client.protocol.RequestAuthCache] process:76) | Auth cache not set in the context
2018-09-12 13:45:55 890 | DEBUG | ([main] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] requestConnection:249) | Connection request: [route: {s}->https://open.youzan.com:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
2018-09-12 13:45:55 891 | DEBUG | ([main] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] leaseConnection:282) | Connection leased: [id: 1][route: {s}->https://open.youzan.com:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
2018-09-12 13:45:55 891 | DEBUG | ([main] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] setSocketTimeout:90) | http-outgoing-1: set socket timeout to 10000
2018-09-12 13:45:55 891 | DEBUG | ([main] [org.apache.http.impl.execchain.MainClientExec] execute:255) | Executing request GET /api/oauthentry/youzan.trades.sold/3.0.0/get?access_token=***13e&end_created=2018-09-12+13%3A44%3A47&page_no=5&start_created=2018-09-11+16%3A59%3A40&use_has_next=true&page_size=50 HTTP/1.1
2018-09-12 13:45:55 891 | DEBUG | ([main] [org.apache.http.impl.execchain.MainClientExec] execute:260) | Target auth state: UNCHALLENGED
2018-09-12 13:45:55 891 | DEBUG | ([main] [org.apache.http.impl.execchain.MainClientExec] execute:266) | Proxy auth state: UNCHALLENGED
2018-09-12 13:45:55 892 | DEBUG | ([main] [org.apache.http.headers] onRequestSubmitted:135) | http-outgoing-1 >> GET /api/oauthentry/youzan.trades.sold/3.0.0/get?access_token=******26692ec&end_created=2018-09-12+13%3A44%3A47&page_no=5&start_created=2018-09-11+16%3A59%3A40&use_has_next=true&page_size=50 HTTP/1.1
2018-09-12 13:45:55 892 | DEBUG | ([main] [org.apache.http.headers] onRequestSubmitted:138) | http-outgoing-1 >> User-Agent: X-YZ-Client 2.0.0 - Java
2018-09-12 13:45:55 892 | DEBUG | ([main] [org.apache.http.headers] onRequestSubmitted:138) | http-outgoing-1 >> Host: open.youzan.com
2018-09-12 13:45:55 892 | DEBUG | ([main] [org.apache.http.headers] onRequestSubmitted:138) | http-outgoing-1 >> Connection: Keep-Alive
2018-09-12 13:45:55 893 | DEBUG | ([main] [org.apache.http.headers] onRequestSubmitted:138) | http-outgoing-1 >> Accept-Encoding: gzip,deflate
2018-09-12 13:45:55 893 | DEBUG | ([main] [org.apache.http.wire] wire:72) | http-outgoing-1 >> "GET /api/oauthentry/youzan.trades.sold/3.0.0/get?access_token=***208a7b26692ec&end_created=2018-09-12+13%3A44%3A47&page_no=5&start_created=2018-09-11+16%3A59%3A40&use_has_next=true&page_size=50 HTTP/1.1[\r][\n]"
2018-09-12 13:45:55 893 | DEBUG | ([main] [org.apache.http.wire] wire:72) | http-outgoing-1 >> "User-Agent: X-YZ-Client 2.0.0 - Java[\r][\n]"
2018-09-12 13:45:55 893 | DEBUG | ([main] [org.apache.http.wire] wire:72) | http-outgoing-1 >> "Host: open.youzan.com[\r][\n]"
2018-09-12 13:45:55 894 | DEBUG | ([main] [org.apache.http.wire] wire:72) | http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2018-09-12 13:45:55 894 | DEBUG | ([main] [org.apache.http.wire] wire:72) | http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2018-09-12 13:45:55 894 | DEBUG | ([main] [org.apache.http.wire] wire:72) | http-outgoing-1 >> "[\r][\n]"
2018-09-12 13:46:12 842 | DEBUG | ([main] [org.apache.http.wire] wire:86) | http-outgoing-1 << "[read] I/O error: Read timed out"
2018-09-12 13:46:12 842 | DEBUG | ([main] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] close:81) | http-outgoing-1: Close connection
2018-09-12 13:46:12 842 | DEBUG | ([main] [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] shutdown:98) | http-outgoing-1: Shutdown connection
2018-09-12 13:46:12 843 | DEBUG | ([main] [org.apache.http.impl.execchain.MainClientExec] abortConnection:128) | Connection discarded
2018-

用手机打开
收藏 ··· 回复
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

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

    • 评分

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

    复制成功