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

Kith EU after running for 20 minutes #111

Closed haroonjamil closed 2 years ago

haroonjamil commented 3 years ago

root@localhost:~/Sneaker-Monitors-master/Shopify# python3 ShopifyMonitor.py STARTING MONITOR Payload delivered successfully, code 204. Exception found: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 697, in _update_chunk_length self.chunk_left = int(line, 16) ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 438, in _error_catcher yield File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 764, in read_chunked self._update_chunk_length() File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 701, in _update_chunk_length raise InvalidChunkLength(self, line) urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 758, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 572, in stream for line in self.read_chunked(amt, decode_content=decode_content): File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 793, in read_chunked self._original_response.close() File "/usr/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 455, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "ShopifyMonitor.py", line 199, in monitor items = scrape_site(CONFIG['URL'], proxy, headers) File "ShopifyMonitor.py", line 43, in scrape_site html = s.get(url + f'?page={page}&limit=250', headers=headers, proxies=proxy, verify=False, timeout=20) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 697, in send r.content File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 836, in content self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b'' File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 761, in generate raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

yasserqureshi1 commented 3 years ago

It seems like this issue is with the site rather than the monitor. Have a look at the link below: https://github.com/urllib3/urllib3/issues/1516

kacperkwapisz commented 2 years ago

Closing this issue for now. If it is still applicable, please let us know.