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

Closed
astrozombie3 opened this issue Jan 12, 2025 · 1 comment

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'))

@mikf
Copy link
Owner

mikf commented Jan 20, 2025

$ gallery-dl -v https://www.instagram.com/paintable.cc
[gallery-dl][debug] Version 1.28.5-dev - Git HEAD: 6ce310d8
[gallery-dl][debug] Python 3.13.1 - Linux-6.12.9-arch1-1-x86_64-with-glibc2.40
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files ['${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 '/home/mike/cookies-instagram-com.txt'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.instagram.com:443
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /api/v1/users/web_profile_info/?username=paintable.cc HTTP/1.1" 200 1721
[instagram][debug] Sleeping 10.24 seconds (request)
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /api/v1/feed/user/2243433236/?count=30 HTTP/1.1" 200 77764
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): scontent-ber1-1.cdninstagram.com:443
[urllib3.connectionpool][debug] https://scontent-ber1-1.cdninstagram.com:443 "GET /v/t51.29350-15/473184205_981413123840612_5201016284499735227_n.webp?stp=dst-jpg_e35_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgweDEwODAuc2RyLmYyOTM1MC5kZWZhdWx0X2ltYWdlIn0&_nc_ht=scontent-ber1-1.cdninstagram.com&_nc_cat=108&_nc_ohc=WBmjQLmlqL4Q7kNvgELh0tp&_nc_gid=d8917f412c6a48cb8034fe3d7d38a176&edm=ABmJApABAAAA&ccb=7-5&ig_cache_key=MzU0MjU1MDQyMDc2ODA0OTMzNg%3D%3D.3-ccb7-5&oh=00_AYBRZyX-jZUTs6RWeHhs6HKUR-gOnIibtwrTzh6RBRgxqg&oe=67942A33&_nc_sid=b41fef HTTP/1.1" 200 93519
./instagram/paintable.cc/3542550420768049336.jpg
./instagram/paintable.cc/3535718328804783248.jpg
./instagram/paintable.cc/3547624454312583011_3547624443491292660.jpg
...

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

No branches or pull requests

2 participants