Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #3

Open
proseclabs opened this issue Feb 27, 2023 · 0 comments
Open

error #3

proseclabs opened this issue Feb 27, 2023 · 0 comments

Comments

@proseclabs
Copy link

Posts processed: 35
JSON Query to explore/locations/157309016434608/: HTTP error code 401. [retrying; skip with ^C]
JSON Query to explore/locations/157309016434608/: HTTP error code 401. [retrying; skip with ^C]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/instaloader/instaloadercontext.py", line 351, in get_json
raise ConnectionException("HTTP error code {}.".format(resp.status_code))
instaloader.exceptions.ConnectionException: HTTP error code 401.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/instaloader/instaloadercontext.py", line 351, in get_json
raise ConnectionException("HTTP error code {}.".format(resp.status_code))
instaloader.exceptions.ConnectionException: HTTP error code 401.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/instaloader/instaloadercontext.py", line 351, in get_json
raise ConnectionException("HTTP error code {}.".format(resp.status_code))
instaloader.exceptions.ConnectionException: HTTP error code 401.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/root/Tracgram/tracgram/tracgram.py", line 37, in retreive_location_data
if post.location != None:
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instaloader/structures.py", line 640, in location
loc.update(self._context.get_json("explore/locations/{0}/".format(location_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instaloader/instaloadercontext.py", line 394, in get_json
return self.get_json(path=path, params=params, host=host, session=sess, _attempt=_attempt + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instaloader/instaloadercontext.py", line 394, in get_json
return self.get_json(path=path, params=params, host=host, session=sess, _attempt=_attempt + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instaloader/instaloadercontext.py", line 384, in get_json
raise ConnectionException(error_string) from err
instaloader.exceptions.ConnectionException: JSON Query to explore/locations/157309016434608/: HTTP error code 401.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/Tracgram/tracgram/tracgram.py", line 124, in
main()
File "/root/Tracgram/tracgram/tracgram.py", line 119, in main
tracgram.retreive_location_data(tracgram.get_profile_posts())
File "/root/Tracgram/tracgram/tracgram.py", line 53, in retreive_location_data
self.L.InstaloaderContext.error_catcher(e)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Instaloader' object has no attribute 'InstaloaderContext'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant