Search code examples
pythontornado

Python tornado AsyncHTTPClient 599


I try to send async PUT request with AsyncHTTPClient, but tornado return HTTP 599 error before request_timeout.


Solution

  • I fix this problem by write body="" to request:

     req = tornado.httpclient.HTTPRequest(url,
                                         method="PUT",
                                         request_timeout=10,
                                         headers=headers,
                                         **body=""**)
    

    Tornado can't send put request with empty body.