benoitc / restkit

an HTTP resource kit for Python
http://restkit.readthedocs.org
Other
405 stars 72 forks source link

Resending of same command #110

Closed kennethkww closed 11 years ago

kennethkww commented 12 years ago

Under what condition does restkit api 4.2.0 resend a command? Is it due to a timeout? The log shows a DELETE request was sent and Start to parse response. But 53 seconds later the same DELETE request was sent again. Can restkit log the reason for the resend of command?

2012-09-12 13:07:36,315 DEBUG client perform 299 Start to perform request: 10.2.0.27:3000 DELETE /api/v1/iscsitarget/iscsi1 2012-09-12 13:07:36,316 DEBUG client make_headers_string 290 Send headers: ['DELETE /api/v1/iscsitarget/iscsi1 HTTP/1.1\r\n', 'Host: 10.2.0.27:3000\r\n', 'User-Agent: restkit/4.2.0\r\n', 'Accept-Encoding: identity\r\n', 'Content-Type: application/text\r\n', 'Authorization: Basic cm9vdDpuaW1idXM=\r\n'] 2012-09-12 13:07:36,316 DEBUG client get_response 460 Start to parse response 2012-09-12 13:08:29,877 DEBUG client make_headers_string 290 Send headers: ['DELETE /api/v1/iscsitarget/iscsi1 HTTP/1.1\r\n', 'Host: 10.2.0.27:3000\r\n', 'User-Agent: restkit/4.2.0\r\n', 'Accept-Encoding: identity\r\n', 'Content-Type: application/text\r\n', 'Authorization: Basic cm9vdDpuaW1idXM=\r\n'] 2012-09-12 13:08:29,878 DEBUG client get_response 460 Start to parse response 2012-09-12 13:08:56,143 DEBUG client get_response 466 Got response: (1, 1) 400 Bad Request 2012-09-12 13:08:56,143 DEBUG client get_response 467 headers: [IOrderedDict([('Connection', 'keep-alive'), ('Content-Type', 'application/json'), ('X-Powered-By', 'Mojolicious (Perl)'), ('Date', 'Wed, 12 Sep 2012 20:08:56 GMT'), ('Content-Length', '83'), ('Server', 'Mojolicious (Perl)')])] 2012-09-12 13:08:56,144 DEBUG client get_response 507 return response class 2012-09-12 13:08:56,144 ERROR restapi DoDelete 189 DoDelete {"errDescr":"error running CLI: 2304;\n iSCSI Target Name iscsi1 does not exist\n"}