yasserqureshi1 / Sneaker-Monitors

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!
GNU General Public License v3.0
462 stars 126 forks source link

Exception found: Traceback (most recent call last): ERORR CONTINUES TO POP UP #141

Closed Posterboi004 closed 2 years ago

Posterboi004 commented 2 years ago

======================================================= The below Issue continues to pop up when setting up the SNKRS monitor.
And repeats over and over down the page.

Exception found: Traceback (most recent call last): File "C:\Users\franklinwill0824\sneaker-monitors\monitors\snkrs\monitor.py", line 113, in monitor to_discord = locations.standard_api(INSTOCK, LOCATION, LANGUAGE, user_agent, proxy, KEYWORDS, start) File "C:\Users\franklinwill0824\sneaker-monitors\monitors\snkrs\locations.py", line 61, in standard_api output = json.loads(html.text) File "C:\Program Files (x86)\Python39-32\lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files (x86)\Python39-32\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files (x86)\Python39-32\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)

yasserqureshi1 commented 2 years ago

This occurs when the page doesn't respond with a JSON doc. It can also occur if you get blocked but this rarely happens with the SNKRS page