There is an error in the code that we think has to do with the old API (link - [login to view URL]) we are using being outdated and as a result Instagram's host denying service. We either want to create a mashup with the newer API (the newer API is updated), or rewrite the program altogether using the new API url link - [login to view URL] The file with the bug is attatched below. Here is a snippet of the error we receive:
Request return 404 error!
2018-06-13 01:09:11,778 - INFO - Added code from group 20k+ Only Food with url
2018-06-13 01:09:12,132 - ERROR - [login to view URL] raised in main loop. Delaying 5 seconds and retrying.
Traceback (most recent call last):
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\[login to view URL]", line 302, in _error_catcher
yield
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\[login to view URL]", line 384, in read
data = [login to view URL](amt)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\http\[login to view URL]", line 449, in read
n = [login to view URL](b)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\http\[login to view URL]", line 493, in readinto
n = [login to view URL](b)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\[login to view URL]", line 586, in readinto
return self._sock.recv_into(b)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\[login to view URL]", line 1009, in recv_into
return [login to view URL](nbytes, buffer)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\[login to view URL]", line 871, in read
return [login to view URL](len, buffer)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\[login to view URL]", line 631, in read
v = [login to view URL](len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\[login to view URL]", line 745, in generate
for chunk in [login to view URL](chunk_size, decode_content=True):
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\[login to view URL]", line 436, in stream
data = [login to view URL](amt=amt, decode_content=decode_content)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\[login to view URL]", line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\[login to view URL]", line 99, in __exit__
[login to view URL](type, value, traceback)
File "C:\Users\cesar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\[login to view URL]", line 320, in _error_catcher
raise ProtocolError('Connection broken: %r' % e, e)
[login to view URL]: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\[login to view URL]", line 297, in main
codes = getCodesv2(threads, codes)
File ".\[login to view URL]", line 218, in getCodesv2
[login to view URL](thread_id, message["item_id"])
File "C:\Users\cesar\OneDrive\Desktop\Instagram-API-python\InstagramAPI\[login to view URL]", line 810, in markItemSeen
return [login to view URL](endpoint, [login to view URL](data))