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-
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|