Hi all,
I'm trying to use Fido to access the OMNI dataset. Fido.search returns a sensible result, but Fido.fetch returns a TypeError (TypeError: __init__() got an unexpected keyword argument 'headers').
I'm really confused, as this has worked in the past, under the same environment and same machine.
Minimal example:
from astropy.time import Time
from sunpy.net import Fido
from sunpy.net import attrs
starttime = Time('2010-04-03 11:59:59.998069')
endtime = Time('2010-04-30 11:00:03.598063')
trange = attrs.Time(starttime, endtime)
dataset = attrs.cdaweb.Dataset('OMNI2_H0_MRG1HR')
result = Fido.search(trange, dataset)
downloaded_files = Fido.fetch(result)
Which returns:

The results from fido.search:
In [28] : result
Out[28]:
<sunpy.net.fido_factory.UnifiedResponse object at 0x00000253AD03CC10>
Results from 1 Provider:
1 Results from the CDAWEBClient:
Source: https://cdaweb.gsfc.nasa.gov/index.html
Dataset Start time End time
--------------- ----------------------- -----------------------
OMNI2_H0_MRG1HR 2010-01-01 00:00:00.000 2010-06-30 23:00:00.000
Which looks fine? I'm running Sunpy 4.0.0 and Astropy 5.1.
Thanks in advance, Matt.