请问会不定期报这个错误是为啥呀,有无大佬帮忙看看:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/
models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.10/json/
__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/
decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/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)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/actions/
inventory_monitoring.py", line 44, in start
inventory_data = self.get_data(
File "/app/actions/
inventory_monitoring.py", line 164, in get_data
return resp.json()
File "/usr/local/lib/python3.10/site-packages/requests/
models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)