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

[instagram][error] HttpError: ConnectionError: ('Connection aborted.', HTTPException('got more than 100 headers')) #6819

Open
astrozombie3 opened this issue Jan 12, 2025 · 0 comments

Comments

@astrozombie3
Copy link

gallery-dl on Termux, Android 12
$ gallery-dl https://www.instagram.com/paintable.cc
[instagram][error] HttpError: ConnectionError: ('Connection aborted.', HTTPException('got more than 100 headers'))
~ $ gallery-dl https://www.instagram.com/paintable.cc --verbose
[gallery-dl][debug] Version 1.28.4
[gallery-dl][debug] Python 3.12.8 - Linux-4.9.270-g862f51bac900-ab7613625-aarch64-with-libc
[gallery-dl][debug] requests 2.32.3 - urllib3 2.3.0
[gallery-dl][debug] Configuration Files ['${HOME}/.config/gallery-dl/config.json', '${HOME}/.gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://www.instagram.com/paintable.cc'
[instagram][debug] Using InstagramUserExtractor for 'https://www.instagram.com/paintable.cc'
[instagram][debug] Using InstagramPostsExtractor for 'https://www.instagram.com/paintable.cc/posts/'
[instagram][debug] Loading cookies from '
/www.instagram.com_cookies.txt'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.instagram.com:443
[instagram][debug] ('Connection aborted.', HTTPException('got more than 100 headers')) (1/5)
[instagram][debug] Sleeping 10.25 seconds (retry)
[urllib3.connectionpool][debug] Starting new HTTPS connection (2): www.instagram.com:443
[instagram][debug] ('Connection aborted.', HTTPException('got more than 100 headers')) (2/5)
[instagram][debug] Sleeping 11.93 seconds (retry)
[urllib3.connectionpool][debug] Starting new HTTPS connection (3): www.instagram.com:443
[instagram][debug] ('Connection aborted.', HTTPException('got more than 100 headers')) (3/5)
[instagram][debug] Sleeping 9.54 seconds (retry)
[urllib3.connectionpool][debug] Starting new HTTPS connection (4): www.instagram.com:443
[instagram][debug] ('Connection aborted.', HTTPException('got more than 100 headers')) (4/5)
[instagram][debug] Sleeping 11.61 seconds (retry)
[urllib3.connectionpool][debug] Starting new HTTPS connection (5): www.instagram.com:443
[instagram][debug] ('Connection aborted.', HTTPException('got more than 100 headers')) (5/5)
[instagram][error] HttpError: ConnectionError: ('Connection aborted.', HTTPException('got more than 100 headers'))
[instagram][debug]
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/cache.py", line 32, in call
value = self.cache[key]
~~~~~~~~~~^^^^^
KeyError: 'paintable.cc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/job.py", line 152, in run
for msg in extractor:
^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/instagram.py", line 66, in items
posts = self.posts()
^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/instagram.py", line 455, in posts
uid = self.api.user_id(self.item)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/instagram.py", line 779, in user_id
user = self.user_by_name(screen_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/cache.py", line 34, in call
value = self.cache[key] = self.func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/instagram.py", line 765, in user_by_name
return self._call(
^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/instagram.py", line 843, in _call
return extr.request(url, **kwargs).json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/instagram.py", line 121, in request
response = Extractor.request(self, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gallery_dl/extractor/common.py", line 256, in request
raise exception.HttpError(msg, response)
gallery_dl.exception.HttpError: ConnectionError: ('Connection aborted.', HTTPException('got more than 100 headers'))

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