ccloli / E-Hentai-Downloader

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

Suddenly getting "Failed! (Network Error)" for every gallery #188

Closed CSalsa closed 3 years ago

CSalsa commented 3 years ago

As said in the title and the image below, the script can't download from any gallery. This happened one day ago. I tried restarting the computer, clearing the cache, and using a different residential proxy. image

ccloli commented 3 years ago

Test it just now and it works fine for me.

I think it may be just your network connection to e-hentai server is not good enough. If you want to check it out, please provide your browser and its version, also your userscript extension and its version.

BTW, you can press F12 and switch to Console tab, then start downloading. When it says Network Error, you should see some logs prefixed with [EHD], copy all of them and paste them here, it should help to find what's up.

Also please check if you can download the image directly, please open any page of any gallery, and check if you can see the image. If it provides a link like Download original **** x **** *.** MB source at the bottom of the page, please click it to see whether you can download it or not.

A previous issue #187 says he cannot download any image larger than 5MB when using Chrome, and the server returns Invalid request, but using Firefox is fine, so maybe it's because some extensions modify the network requests. You can also try using another browser to see if that helps.

image

CSalsa commented 3 years ago

image This is what I get, I'll try on another browser.

ccloli commented 3 years ago

This is what I get, I'll try on another browser.

Are you able to access any *.hath.network link in console? You can click it to see what it returns.

CSalsa commented 3 years ago

Yeah I can, it opens the direct link to the image.

CSalsa commented 3 years ago

It works on firefox but not chrome.

CSalsa commented 3 years ago

I used the same settings for both, using the force download resized image.

ccloli commented 3 years ago

That's a bit weird, since you can actually access to the image. But as it returns Network Error by the browser or the extension, so I'm not sure what's going on. Maybe some extensions break it?

BTW, can you also check the extension's network request? You can check it by right click the extension on Chrome, and select Manage Extension, and search for background.html, click that link, it will open a DevTools window.

Switch to Network tab and start downloading, and focus on the request that url contains fullimg.php and *.hath.network, and if it fails, you can check the Status column to see what's up. Also you can switch to Console tag to see full log.

CSalsa commented 3 years ago

image

image

ccloli commented 3 years ago

That's really weird, since the script uses the userscript extension's api GM_xmlhttpRequest to bypass cross-origin limit, but now Tampermonkey itself has the cross-origin issue. Will checkout what's going on, and report to Tampermonkey if I've no clue.

ccloli commented 3 years ago

BTW, please check the following list, it may helps to find what's up:

  1. What's your Chrome's version?

    You can check it out by go to Chrome's settings and click About Chrome, or go to chrome://settings/help or chrome://version/.

  2. What's your Tampermonkey version?

    You can check it out by clicking Tampermonkey's icon in extension bar, and click Dashboard, it should be seen under the dashboard's logo area. image

  3. Uninstall E-Hentai Download, and install it again, is that resolve the issue? If the issue is resolved, then it might be Tampermonkey has some corrupts, and you can ignore the following actions.
  4. Is disabling Tampermonkey's @connect check helps?

    Go to Tampermonkey's dashboard, switch to Settings tab, and change General -> Config mode to Advanced, and navigate to Security -> Check @connect, change it to Disabled, and click Save button at the bottom of Security section. Download again and check if it still have the issue. image image

  5. Are you using some extensions that modify network request? Is disabling all other extensions but left Tampermonkey enabled solve the issue?
  6. If you're using the stable version of Tampermonkey (the icon is black and its version has only 2 number like v4.12), disable it and install Tampermonkey BETA, then install the script, and see if that helps.

    Though I checked all the issues of Tampermonkey in around the last month, there's no issue about this weird cross-origin bug.

CSalsa commented 3 years ago

This is fixed now.

I didn't do anything except wait a few days and all functionality is back on chrome, so... thank you.