skyplane-project / skyplane

🔥 Blazing fast bulk data transfers between any cloud 🔥
https://skyplane.org
Apache License 2.0
999 stars 58 forks source link

Fixed Azure being unable to download ip ranges #904

Closed s3kim2018 closed 1 year ago

s3kim2018 commented 1 year ago

Fixed by 1) passing in a user agent with the URL Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 2) parsing the redirection url with regex and successfully downloading the azure ip range json file.

sarahwooders commented 1 year ago

Could you fix the black-pytype errors? You can test locally with this:

poetry run black . --line-length=140 && poetry run pytype . --config .pytype.cfg -j 16