ccloli / E-Hentai-Downloader

Download E-Hentai archive as zip file
GNU General Public License v3.0
1.9k stars 140 forks source link

Response Error/Failed! (Wrong MIME) #59

Closed lemou closed 7 years ago

lemou commented 7 years ago

Since the change to e-hentai.org when i try to download, the script fail with a "Response Error" if i'm not logged and "Failed! (Wrong MIME)" if i'm logged. I don't know because of that update or it happen only just me. so please check. Thank you. And i use Chrome with violent monkey.

cheon7886 commented 7 years ago

Hello. It happened to me, too. I used pptp vpn server, chrome with tapermonkey.

ccloli commented 7 years ago

Sorry but I'm not sure how it happens, maybe the reason is the cookie doesn't keep in sync with e-hentai.org.

Try logging out your E-Hentai account and logging in again. If it still doesn't work, please try visiting any page of any gallery, then click the link Download original **** x **** **** MB source at the bottom of the page, it should redirect you to the login page and just login, if the link doesn't exist, switch to another page or try another gallery. That should fixes the problem.

If you still have the problem and that download source link really gives you the original image, please reply me the link of problem gallery, and press F12, switch to Console, copy all the logs that started with [EHD] and paste them here, thank you.

iShyboy commented 7 years ago

I had this error at the time EXH got down this weekend, but it got normal after I cleared my cookies and setup my account and settings again.

Akiteru2912 commented 7 years ago

i have the same error until now. all image download succeed, zip succeed, but failed to download. try to clear all and retry but it not help :/ untitled `

ccloli commented 7 years ago

@Akiteru2912 See https://github.com/ccloli/E-Hentai-Downloader/wiki/Can't-make-Zip-file-successfully , that means you don't have free memory or the file is too large. Try enabling File System on Settings or using Pages Range.

Akiteru2912 commented 7 years ago

thank you so much, i used file system and it's work. sorry for my lack of observed :D

lemou commented 7 years ago

it works thanks, but when i try without being logged, the script still fail with a "Response Error"

if you want to check, for example with the gallery: https://e-hentai.org/g/1028293/0214846a9d/ the console log: http://pastebin.com/s0aDsGPD

ccloli commented 7 years ago

@lemou Maybe the regex rule of image url for not login user isn't correct. I also tried the gallery, but it downloaded successfully. For me, the source code of the gallery viewing page has a specific id id="img" so that the script can get the correct url. But from your console log, the script used the last regex rule which for pages that don't have id="img" then it threw the errors.

Please help me to copy and paste the source code from your side, just logout and confirm that you can still reproduce the bug, then open the following link on your Chrome: view-source:https://e-hentai.org/s/0f244ec219/1028293-3. If the link can't be opened, open any gallery and then click any page/thumbnail, right click anywhere and select View page source.

lemou commented 7 years ago

I can still reproduce the bug. The source code: http://pastebin.com/7FEd8JWM

ccloli commented 7 years ago

Fixed in 1.25.