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

Fetch Pages' URL failed, Please try again later. #86

Closed
yingziwu opened this issue Dec 7, 2017 · 4 comments
Closed

Fetch Pages' URL failed, Please try again later. #86

yingziwu opened this issue Dec 7, 2017 · 4 comments

Comments

@yingziwu
Copy link

yingziwu commented Dec 7, 2017

When I download images form exhentai.org, I got the error "Fetch Pages' URL failed, Please try again later." And I download from e-hentai.org, everything is ok.

Firefox: 57.0.1
OS: Linux 4.14.3-1-ARCH
Greasemonkey: 4.0
E-Hentai Downloader: 1.27.1

I download from https://exhentai.org/g/1152060/445edb4c21/ , I got the error "Fetch Pages' URL failed, Please try again later." and I can download images from https://e-hentai.org/g/1152060/445edb4c21/ without error.

I can browse exhentai normally.
I try download many galleries on exhentai and all got the error "Fetch Pages' URL failed, Please try again later."

Console log:

[EHD] E-Hentai Downloader is running.
E-Hentai%20Downloader:392:1
[EHD] Bugs Report > https://github.com/ccloli/E-Hentai-Downloader/issues | https://greasyfork.org/scripts/10379-e-hentai-downloader/feedback
E-Hentai%20Downloader:393:1
[EHD] To report a bug, it's recommended to provide the logs started with "[EHD]", thanks. =w=
E-Hentai%20Downloader:394:1
[EHD] UserAgent > Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
E-Hentai%20Downloader:12415:1
[EHD] Script Handler > Greasemonkey
E-Hentai%20Downloader:12416:1
[EHD] Script Handler Version > 4.0
E-Hentai%20Downloader:12417:1
[EHD] E-Hentai Downloader Version > 1.27.1
E-Hentai%20Downloader:12418:1
[EHD] Current URL > https://exhentai.org/g/1152060/445edb4c21/
E-Hentai%20Downloader:12419:1
[EHD] Is Logged In > true
E-Hentai%20Downloader:12420:1
[EHD] E-Hentai Downloader Setting > {"save-info-list":["title","metas","uploader-comment","page-links"]}
E-Hentai%20Downloader:12382:3
[EHD] Request Image Limits From e-hentai.org
E-Hentai%20Downloader:14122:2
@ccloli
Copy link
Owner

ccloli commented Dec 7, 2017

Hi, it works fine here, with Firefox 57, Greasemonkey 4.0 and E-Hentai Downloader 1.27.1.

From your log, you're actually using Firefox 56, which is not fully support WebExtension. Make sure you've upgrade your Firefox to 57, and if you still have the bug, please follow the steps to let me know what's up:

  1. Open any image page like this.
  2. Right click anywhere, choose "View source code" (or maybe something like this).
  3. Copy and paste all the source code here.

If you have any problem at step 1 or 2, copy view-source:https://exhentai.org/s/46db0d2db5/1152060-1 and paste it to browser's address bar, then press Enter.

@yingziwu
Copy link
Author

yingziwu commented Dec 8, 2017

My firefox really is Firefox 57.
I use the add-on User Agent Switcher to change the UserAgent, the default UserAgent is Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0.

view-source:https://exhentai.org/s/46db0d2db5/1152060-1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>[pixiv] EKマサト</title>
<link rel="stylesheet" type="text/css" href="https://exhentai.org/z/0331/x.css" />

</head>
<body>
<script type="text/javascript">
function popUp(URL,w,h) {
	window.open(URL,"_pu"+(Math.random()+"").replace(/0\./,""),"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+((screen.width-w)/2)+",top="+((screen.height-h)/2));
	return false;
}
</script>
<div id="i1" class="sni" style="width:1300px"><h1>[pixiv] EKマサト</h1><div id="i2"><div class="sn"><a onclick="return load_image(1, '46db0d2db5')" href="https://exhentai.org/s/46db0d2db5/1152060-1"><img src="https://exhentai.org/img/f.png" /></a><a id="prev" onclick="return load_image(1, '46db0d2db5')" href="https://exhentai.org/s/46db0d2db5/1152060-1"><img src="https://exhentai.org/img/p.png" /></a><div><span>1</span> / <span>185</span></div><a id="next" onclick="return load_image(2, '4aecacef8a')" href="https://exhentai.org/s/4aecacef8a/1152060-2"><img src="https://exhentai.org/img/n.png" /></a><a onclick="return load_image(185, '283a625e5c')" href="https://exhentai.org/s/283a625e5c/1152060-185"><img src="https://exhentai.org/img/l.png" /></a></div><div>405552671.jpg :: 1280 x 720 :: 354.9 KB</div></div><div id="i3"><a onclick="return load_image(2, '4aecacef8a')" href="https://exhentai.org/s/4aecacef8a/1152060-2"><img id="img" src="http://118.171.30.231:59527/h/20e75f1f70db56265b258c6fb54f807739dc1701-363374-1280-720-jpg/keystamp=1512710700-735918e17a;fileindex=57399210;xres=1280/405552671.jpg" style="width:1280px;height:720px" onerror="this.onerror=null; nl('24326-420197')" /></a></div><div id="i4"><div>405552671.jpg :: 1280 x 720 :: 354.9 KB</div><div class="sn"><a onclick="return load_image(1, '46db0d2db5')" href="https://exhentai.org/s/46db0d2db5/1152060-1"><img src="https://exhentai.org/img/f.png" /></a><a id="prev" onclick="return load_image(1, '46db0d2db5')" href="https://exhentai.org/s/46db0d2db5/1152060-1"><img src="https://exhentai.org/img/p.png" /></a><div><span>1</span> / <span>185</span></div><a id="next" onclick="return load_image(2, '4aecacef8a')" href="https://exhentai.org/s/4aecacef8a/1152060-2"><img src="https://exhentai.org/img/n.png" /></a><a onclick="return load_image(185, '283a625e5c')" href="https://exhentai.org/s/283a625e5c/1152060-185"><img src="https://exhentai.org/img/l.png" /></a></div></div><div id="i5"><div class="sb"><a href="https://exhentai.org/g/1152060/445edb4c21/"><img src="https://exhentai.org/img/b.png" referrerpolicy="no-referrer" /></a></div></div><div id="i6" class="if"> &nbsp; <img src="https://exhentai.org/img/mr.gif" class="mr" /> <a href="https://exhentai.org/?f_shash=46db0d2db58b67bc43548bd97e07ff78799dbf48&amp;fs_from=405552671.jpg+from+%5Bpixiv%5D+EK%E3%83%9E%E3%82%B5%E3%83%88">Show all galleries with this file</a>  &nbsp; <img src="https://exhentai.org/img/mr.gif" class="mr" /> <a href="#" id="loadfail" onclick="return nl('24326-420197')">Click here if the image fails loading</a> </div><div id="i7" class="if"> &nbsp; <img src="https://exhentai.org/img/mr.gif" class="mr" /> <a href="https://exhentai.org/fullimg.php?gid=1152060&amp;page=1&amp;key=cvk0tdl9085">Download original 1920 x 1080 1.01 MB source</a></div></div><p class="ip">[<a href="https://exhentai.org/">Front Page</a>]</p><script type="text/javascript">var gid=1152060;var startpage=1;var startkey="46db0d2db5";var showkey="bczfeu99085";var base_url="https://exhentai.org/";var api_url = "https://exhentai.org/api.php";var prl=9999;var si=24326;var xres = 1280;var yres = 720;</script><script type="text/javascript" src="https://exhentai.org/z/0331/ehg_show.c.js"></script>
</body>
</html>

@ccloli
Copy link
Owner

ccloli commented Dec 8, 2017

Sorry I got it wrong. It happens when getting the URLs of each page (Fetching Gallery Pages URL), not each image. Make sure you can access to E-Hentai without any network problem, as the message only shows when it has some connecting problem. Looks like the new Greasemonkey wraps everything in its sandbox, and cannot track the network request, so there is no way to know what's up.

@yingziwu
Copy link
Author

yingziwu commented Dec 25, 2017

@ccloli
I found the reason of this problem.

Open Preferences ---> Privacy & Security and set History as follows:

  • Firefox will Use custom setting for history
    • Accept cookies from websites
      • Accept third-party cookies Never
      • Keep until I close Firefox

and the Exceptions list add https://e-hentai.org and don't add https://exhentai.org.

Then you can get this problem, you can browse https://exhentai.org normally and use E-Hentai-Downloader download will get "Fetch Pages' URL failed, Please try again later."

After add https://exhentai.org to Exceptions list, you can download normally.

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