You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A section of python used to retrieve data has suddenly started to fail last week:
readings = dict(
(loc['Identifier'],
timeseries.publish.get('/GetFieldVisitReadingsByLocation', params={
'LocationIdentifier': loc['Identifier'],
'Parameters': ['Discharge'],
'ApplyDatumConversion': 'true'
})['FieldVisitReadings']
) for loc in locationDescriptions)
and receiving the following error:
Traceback (most recent call last):
File "C:\Scripts\CreateStage.py", line 18, in
readings = dict(
File "C:\Scripts\CreateStage.py", line 20, in
timeseries.publish.get('/GetFieldVisitReadingsByLocation', params={
File "C:\Scripts\timeseries_client.py", line 203, in get
return self.json_or_none(self._get_raw(url, **kwargs))
File "C:\Scripts\timeseries_client.py", line 223, in get_raw
return response_or_raise(r)
File "C:\Scripts\timeseries_client.py", line 27, in response_or_raise
json = response.json()
File "C:\Users\isbcf\AppData\Roaming\Python\Python39\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\Python39\lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered:
A section of python used to retrieve data has suddenly started to fail last week:
readings = dict(
(loc['Identifier'],
timeseries.publish.get('/GetFieldVisitReadingsByLocation', params={
'LocationIdentifier': loc['Identifier'],
'Parameters': ['Discharge'],
'ApplyDatumConversion': 'true'
})['FieldVisitReadings']
) for loc in locationDescriptions)
and receiving the following error:
Traceback (most recent call last):
File "C:\Scripts\CreateStage.py", line 18, in
readings = dict(
File "C:\Scripts\CreateStage.py", line 20, in
timeseries.publish.get('/GetFieldVisitReadingsByLocation', params={
File "C:\Scripts\timeseries_client.py", line 203, in get
return self.json_or_none(self._get_raw(url, **kwargs))
File "C:\Scripts\timeseries_client.py", line 223, in get_raw
return response_or_raise(r)
File "C:\Scripts\timeseries_client.py", line 27, in response_or_raise
json = response.json()
File "C:\Users\isbcf\AppData\Roaming\Python\Python39\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\Python39\lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: