0017-00000704
Updated at:
Problem description
A timeout error occurs. This indicates that the Content-Length header is specified in the request, but the request body is not sent or is smaller than the specified value.
Causes
The server receives a request body that is smaller than the value specified in the Content-Length request header. Consequently, the server waits for the remaining data until the request times out.
Example problem
PUT /test.txt HTTP/1.1
Host: test.oss-cn-zhangjiakou.aliyuncs.com
User-Agent: aliyun-sdk-python/2.6.0(Windows/7/AMD64;3.7.0)
Accept: */*
Connection: keep-alive
Content-Length: 100
Content-Type: text/plain
date: Tue, 04 Dec 2018 15:56:37 GMT
authorization: OSS qn6q****************:kZoY****************
Transfer-Encoding: chunked
For example, if Content-Length is set to 100, this error occurs if the sent file is smaller than 100 bytes or if no request body is sent.
Solutions
-
Ensure that the network connection is stable.
-
Ensure that the value of the
Content-Lengthheader matches the size of the request body. -
Use an SDK to send requests.
Is this page helpful?