webcomics / dosage

dosage is a comic strip downloader and archiver
https://dosage.rocks/
MIT License
125 stars 59 forks source link

Broken comic - TheGamerCat #268

Open Typhonragewind opened 1 year ago

Typhonragewind commented 1 year ago

This one seems to be broken, but i think the fault lies in the comic server itself and not in dosage, as i get this error:

TheGamerCat> ERROR: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

Don't know if there is anything that can be done about it, but i'm leaving the report here

I tried to rewrite the class to use the basicparser, and i still get the same error

TobiX commented 1 year ago

That cannot be fixed by using a different parser, the server sends invalid chunked responses...

This also fails:

$ curl --http1.1 --fail-with-body -o pawsed.html https://thegamercat.com/comic/pawsed/
curl: (18) transfer closed with outstanding read data remaining

Even HTTP2 fails:

$ curl --fail-with-body -o pawsed.html https://thegamercat.com/comic/pawsed/
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)

:disappointed:

Typhonragewind commented 1 year ago

I was experimenting with it a bit more and there was one instance where it succeeded (just by retrying multiple times), so perhaps a multiple retry approach MIGHT work, as ugly as it sounds