Closed joe-pitt closed 3 weeks ago
Thank you for bringing this to our attention, @joe-pitt! We’re currently looking into it and will update you as soon as we have more information.
Not sure if this is related to attempts to fix this issue, but since 2024-10-04 station.get now retrieves no info for many sites:
from icoscp_core.icos import bootstrap
from icoscp import cpauth
from icoscp.station import station
cookie_token = ...
meta, data = bootstrap.fromCookieToken(cookie_token)
cpauth.init_by(data.auth)
station.get(stationId="BIK").info()
prints:
{'stationId': 'BIK',
'name': None,
'theme': None,
'icosclass': None,
'siteType': None,
'lat': None,
'lon': None,
'eas': None,
'firstName': None,
'lastName': None,
'email': None,
'country': None,
'project': None,
'uri': None}
This means I can't retrieve data from these sites. Other sites (e.g. GAT) are still working fine.
Other users are currently experiencing the same problem.
OK thanks that's useful to know!
Hey @joe-pitt,
The two issues you were encountering were partially related. You shouldn't be getting duplicates of the same station, which was a bug, and the empty station information was due to a server-side request. Both issues are now fixed in the latest icoscp version.
pip install icosp==0.2.1
Brilliant - thank you!
I've just upgraded to icoscp-0.2.0 (from 0.1.17) and for now I am still using the legacy station.get() function. In general this is working, but when I try for the site "RGL" using the following:
I get the following error:
If I print "stn" just before this I find that it has 4 identical entries:
This doesn't seem to happen for other sites - is this a RGL-specific bug or am I doing something foolish?