Closed nabobalis closed 8 months ago
In GitLab by @wtbarnes on Jan 10, 2023, 11:47
The reason this is failing is because the file on this SSW mirror has Content-encoding: gzip
which cannot be decoded when downloading using parfive
. This error is not propagated through when using the download manager, but can be seen when using parfive
directly,
import parfive
dl = parfive.Downloader()
dl.enqueue_file('https://sohoftp.nascom.nasa.gov/solarsoft/sdo/aia/response/aia_V3_error_table.txt', path='.')
foo = dl.download()
print(foo.errors)
yields
1/0 files failed to download. Please check `.errors` for details
Files Downloaded: 0%| | 0/1 [00:00<?, ?file/s]
[<parfive.results.Error object at 0x1072eb540>
https://sohoftp.nascom.nasa.gov/solarsoft/sdo/aia/response/aia_V3_error_table.txt,
400, message='Can not decode content-encoding: gzip']
It is not clear whether this is a problem with this file or a bug in parfive
, but this was not an issue with the HESPERIA SSW mirror we were previously using.
See also this upstream issue on parfive
: https://github.com/Cadair/parfive/issues/121
We have patched this and opened another issue to undo the fix when parfive is fixed.
In GitLab by @wtbarnes on Dec 9, 2022, 16:05
Since switching over to the alternate SSW mirror in !167, I've noticed that the downloads for the V3 error table files are failing. I don't understand why as the URL resolves just fine: https://sohoftp.nascom.nasa.gov/solarsoft/sdo/aia/response/aia_V3_error_table.txt
However, when trying to download an error table using
aiapy.calibrate.util.get_error_table
, I get the following exception,The download fails and then the data manager cannot find the file (the confusing part of how this error message is handled is probably more of an upstream sunpy issue).
The error table test is also failing locally for me:
which seems to be the same failure that is causing the conda-forge build failures: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=619803&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d&l=631