azure-devops-python-api
azure-devops-python-api copied to clipboard
get_artifact_content_zip() does not follow redirect from 302
Appears that ADO puts small pipeline artifacts elsewhere and uses a 302 to redirect.
My code downloading artifacts from multiple builds works fine for the big artifacts but gets a 404 for the little ones. My suspicion (haven't traced through this one completely) is that the underlying API (from msrest?) is putting in the 404. Looking at the traffic in Fiddler I see that ADO is actually issuing a 302
HTTP/1.1 302 Found
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Location: https://artprodwus21.artifacts.visualstudio.com/*redacted*/_apis/artifact/*redacted*/content?format=zip
[---
rest of the stuff removed as I don't think it's of interest and
I'm not certain what/if should be removed before posting
---]
The link provided for the redirect works fine.
Looked through the azure-devops code to see if there was a flag to set to have it follow the redirect but didn't see it (in the base class (super in Python?) maybe?)