This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sohaib Ahmad
Recipients Sohaib Ahmad
Date 2016-09-06.15:09:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473174596.52.0.952829730129.issue27973@psf.upfronthosting.co.za>
In-reply-to
Content
urllib.urlretrieve() fails on ftp:
- start and complete a transfer
- immediately start another transfer
The second transfer will fail with the following error:
[Errno ftp error] 200 Type set to I

I am using urllib.urlretrieve(url, filename) to retrieve two files (one by one) from FTP server.

Sample code to reproduce the problem is attached. Please update url1 and url2 with correct values.

This problem was reported several years ago and was fixed but it is now reproducible on latest python 2.7 package (2.7.12).

http://bugs.python.org/issue1067702

I tried the same scenario on 2.7.10 and it worked fine. So a patch after 2.7.10 must have broken something.
History
Date User Action Args
2016-09-06 15:09:56Sohaib Ahmadsetrecipients: + Sohaib Ahmad
2016-09-06 15:09:56Sohaib Ahmadsetmessageid: <1473174596.52.0.952829730129.issue27973@psf.upfronthosting.co.za>
2016-09-06 15:09:56Sohaib Ahmadlinkissue27973 messages
2016-09-06 15:09:56Sohaib Ahmadcreate