Загрузка...

With what this error is connected?

Thread in Python created by daybnsad Sep 24, 2019. 128 views

  1. daybnsad
    daybnsad Topic starter Sep 24, 2019 Banned 19 Oct 2, 2018
    Traceback (most recent call last):
    File "C:/Users/User/Downloads/new (5).py", line 45, in <module>
    func()
    File "C:/Users/User/Downloads/new (5).py", line 42, in func
    func()
    File "C:/Users/User/Downloads/new (5).py", line 42, in func
    func()
    File "C:/Users/User/Downloads/new (5).py", line 42, in func
    func()
    [Previous line repeated 8 more times]
    File "C:/Users/User/Downloads/new (5).py", line 25, in func
    rewss = requests.get('https://market.csgo.com/api/v2/search-item-by-hash-name?key=xxxxxxxxxxxxxxxxxxxxxxxxx&hash_name=' + hashname).json()
    File "C:\Users\User\PycharmProjects\untitled\venv\lib\site-packages\requests\models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\json\__init__.py", line 354, in loads
    return _default_decoder.decode(s)
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    с чем связана ?
     
  2. daybnsad
    daybnsad Topic starter Sep 24, 2019 Banned 19 Oct 2, 2018
    мб тайм слипы поставить? или не с этим связано?
     
  3. MattSins
    MattSins Sep 24, 2019 55 Jan 5, 2018
    скинь код
     
  4. daybnsad
    daybnsad Topic starter Sep 24, 2019 Banned 19 Oct 2, 2018
    Code
    def func():
    while True:
    result = requests.get('https://market.csgo.com/api/v2/items?key=Osadasdasdasdasd').json()
    if result['items'] != 'null':
    m = len(result['items'])
    time.sleep(3)
    for x in range(m):
    itemid = result['items'][x]['item_id']
    classid = result['items'][x]['classid']
    hashname = result['items'][x]['market_hash_name']
    time.sleep(3)
    rewss = requests.get('https://market.csgo.com/api/v2/search-item-by-hash-name?key=sadsadasdasdasdas&hash_name=' + hashname).json()
    if rewss['data'] != []:
     
  5. MattSins
    MattSins Sep 24, 2019 55 Jan 5, 2018
Loading...
Top