Skip to content

[newgrounds][error] An unexpected error occurred: TypeError - 'NullResponse' #8227

@jhonsinho

Description

@jhonsinho

Newgrounds is having some issues due to the DDOS attack and recently they implemented a simple Cloudflare "click here human" type of verification, that sometimes results in a Captcha. So now gallery-dl is giving out this error:

C:\gallery-dl>Call gallery-dl -o skip=true --filter "date >= datetime(2025, 9, 7) or abort()" --directory "C:\gallery-dl\gallery-dl\newgrounds\aaaaaron122" https://aaaaaron122.newgrounds.com/
[newgrounds][warning] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1'
[newgrounds][error] An unexpected error occurred: TypeError - 'NullResponse' object does not support the context manager protocol. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .

The output:

C:\gallery-dl>gallery-dl -o skip=true --verbose --filter "date >= datetime(2025, 9, 7) or abort()" --directory "C:\gallery-dl\gallery-dl\newgrounds\aaaaaron122" https://aaaaaron122.newgrounds.com/
[gallery-dl][debug] Version 1.30.7 - Executable (stable/windows)
[gallery-dl][debug] Python 3.13.7 - Windows-10-10.0.19044-SP0
[gallery-dl][debug] requests 2.32.5 - urllib3 2.5.0
[gallery-dl][debug] Configuration Files ['%APPDATA%\\gallery-dl\\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://aaaaaron122.newgrounds.com/'
[newgrounds][debug] Using NewgroundsUserExtractor for 'https://aaaaaron122.newgrounds.com/'
[newgrounds][debug] Using NewgroundsArtExtractor for 'https://aaaaaron122.newgrounds.com/art'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): aaaaaron122.newgrounds.com:443
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /art?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1' (1/5)
[newgrounds][debug] Sleeping 1.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /art?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1' (2/5)
[newgrounds][debug] Sleeping 2.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /art?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1' (3/5)
[newgrounds][debug] Sleeping 3.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /art?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1' (4/5)
[newgrounds][debug] Sleeping 4.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /art?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1' (5/5)
[newgrounds][warning] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/art?page=1&isAjaxRequest=1'
[newgrounds][error] An unexpected error occurred: TypeError - 'NullResponse' object does not support the context manager protocol. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[newgrounds][debug]
Traceback (most recent call last):
  File "gallery_dl\job.py", line 152, in run
  File "gallery_dl\extractor\newgrounds.py", line 56, in items
  File "gallery_dl\extractor\newgrounds.py", line 361, in _pagination
TypeError: 'NullResponse' object does not support the context manager protocol
[newgrounds][debug] Using NewgroundsAudioExtractor for 'https://aaaaaron122.newgrounds.com/audio'
[newgrounds][debug] Sleeping 0.52 seconds (request)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /audio?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/audio?page=1&isAjaxRequest=1' (1/5)
[newgrounds][debug] Sleeping 1.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /audio?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/audio?page=1&isAjaxRequest=1' (2/5)
[newgrounds][debug] Sleeping 2.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /audio?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/audio?page=1&isAjaxRequest=1' (3/5)
[newgrounds][debug] Sleeping 3.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /audio?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/audio?page=1&isAjaxRequest=1' (4/5)
[newgrounds][debug] Sleeping 4.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /audio?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/audio?page=1&isAjaxRequest=1' (5/5)
[newgrounds][warning] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/audio?page=1&isAjaxRequest=1'
[newgrounds][error] An unexpected error occurred: TypeError - 'NullResponse' object does not support the context manager protocol. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[newgrounds][debug]
Traceback (most recent call last):
  File "gallery_dl\job.py", line 152, in run
  File "gallery_dl\extractor\newgrounds.py", line 56, in items
  File "gallery_dl\extractor\newgrounds.py", line 361, in _pagination
TypeError: 'NullResponse' object does not support the context manager protocol
[newgrounds][debug] Using NewgroundsMoviesExtractor for 'https://aaaaaron122.newgrounds.com/movies'
[newgrounds][debug] Sleeping 0.93 seconds (request)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /movies?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/movies?page=1&isAjaxRequest=1' (1/5)
[newgrounds][debug] Sleeping 1.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /movies?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/movies?page=1&isAjaxRequest=1' (2/5)
[newgrounds][debug] Sleeping 2.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /movies?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/movies?page=1&isAjaxRequest=1' (3/5)
[newgrounds][debug] Sleeping 3.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /movies?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/movies?page=1&isAjaxRequest=1' (4/5)
[newgrounds][debug] Sleeping 4.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /movies?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/movies?page=1&isAjaxRequest=1' (5/5)
[newgrounds][warning] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/movies?page=1&isAjaxRequest=1'
[newgrounds][error] An unexpected error occurred: TypeError - 'NullResponse' object does not support the context manager protocol. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[newgrounds][debug]
Traceback (most recent call last):
  File "gallery_dl\job.py", line 152, in run
  File "gallery_dl\extractor\newgrounds.py", line 56, in items
  File "gallery_dl\extractor\newgrounds.py", line 361, in _pagination
TypeError: 'NullResponse' object does not support the context manager protocol
[newgrounds][debug] Using NewgroundsGamesExtractor for 'https://aaaaaron122.newgrounds.com/games'
[newgrounds][debug] Sleeping 1.44 seconds (request)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /games?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/games?page=1&isAjaxRequest=1' (1/5)
[newgrounds][debug] Sleeping 1.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /games?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/games?page=1&isAjaxRequest=1' (2/5)
[newgrounds][debug] Sleeping 2.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /games?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/games?page=1&isAjaxRequest=1' (3/5)
[newgrounds][debug] Sleeping 3.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /games?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/games?page=1&isAjaxRequest=1' (4/5)
[newgrounds][debug] Sleeping 4.00 seconds (retry)
[urllib3.connectionpool][debug] https://aaaaaron122.newgrounds.com:443 "GET /games?page=1&isAjaxRequest=1 HTTP/1.1" 503 None
[newgrounds][debug] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/games?page=1&isAjaxRequest=1' (5/5)
[newgrounds][warning] '503 Service Unavailable' for 'https://aaaaaron122.newgrounds.com/games?page=1&isAjaxRequest=1'
[newgrounds][error] An unexpected error occurred: TypeError - 'NullResponse' object does not support the context manager protocol. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[newgrounds][debug]
Traceback (most recent call last):
  File "gallery_dl\job.py", line 152, in run
  File "gallery_dl\extractor\newgrounds.py", line 56, in items
  File "gallery_dl\extractor\newgrounds.py", line 361, in _pagination
TypeError: 'NullResponse' object does not support the context manager protocol

Issue can be reproduced, when I try running any Newgrounds link results in the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions