anyways-open / impact-qgis-plugin

QGIS plugin as part of the ANYWAYS Impact tools.
https://www.anyways.eu
MIT License
2 stars 0 forks source link

Uncaught json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #27

Open zyadtap opened 2 years ago

zyadtap commented 2 years ago

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\anyways_impact_toolbox\impact\__init__.py", line 103, in <lambda>
    fetcher.finished.connect(lambda: onFinished(onFinished))
  File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\anyways_impact_toolbox\impact\__init__.py", line 97, in onFinished
    callback(content)
  File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\anyways_impact_toolbox\impact\routing_api.py", line 61, in callback
    profiles = json.loads(raw)["profiles"]
  File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\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)

anyways_impact_toolbox 0.7.1, QGIS 3.16.16-Hannover on Windows 10