Найти ошибку на python
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\Python311\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python311\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)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Доработки\main.py", line 32, in get_data
responce = requests.get(url, headers=headers).json()
File "C:\Program Files\Python311\Lib\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)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Доработки\main.py", line 46, in get_data
all_brand = responce['data']['filters']
KeyError: 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Доработки\main.py", line 87, in
main()
File "C:\Доработки\main.py", line 74, in main
get_data(f'https://search.wb.ru/exactmatch/ru/common/v4/search?filters=fbrand&query={resp}&resultset=filters&suppressSpellcheck=false&spp=0ions=80,64,38,4,83,33,70,69,30,86,40,1,22,66,31,48,114&pricemarginCoeff=1.0=0&appType=1&emp=0&locale=ru&lang=ru&curr=rub&couponsGeo=2,12,7,3,6,21,16&dest=-4028307&', f'{resp}')
File "C:\Доработки\main.py", line 56, in get_data
all_brand = responce['data']['filters']
KeyError: 'data'