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
Manga loading failing #84
Comments
Do you read anything on MangaChapter? I'm bored today and thought I could 2013/8/3 fuzetsu notifications@github.com
Fábio de Godoy |
Yeah, I'm reading a few things on manga chapter. It seems like the only thing that's broken there is the method of getting the chapter name and adding it to the array. Right now they're just showing up as "No chapters found yet..." |
It's sad how the same code that always break in the lab runs fine if I run 2013/8/3 fuzetsu notifications@github.com
Fábio de Godoy |
Anyway, that code is broken even if is was not for this, because it doesn't Maybe the page that I'm looking is not the same that AMR loads? It would be 2013/8/3 Fábio de Godoy mexicano21@gmail.com
Fábio de Godoy |
By the way, in case it isn't clear this issue is saying that all manga sites are not loading properly. The MangaChapter issue is separate as far as I can tell. |
Yeah I don't think it's related to your commits, they were on the dev branch anyway right? This appears to be affecting the master branch... |
@fuzetsu you sure your internet was up and running when you updated your list? it's reproducible? Call |
It is jQuery. And I'm stupid to not have know this before. The jQuery API says: "As of jQuery 1.6, the .attr() method returns undefined for attributes that Before we used a ancient jQuery version (1.4.2, I think), that returns a 2013/8/3 Braiam Peguero notifications@github.com
Fábio de Godoy |
@braiam @mexicano21 |
HUH?! We were using |
@fuzetsu silly me is |
@braiam |
Maybe we are using a newer jQuery version on AMR for a while, BUT In a way, everything is chained =D 2013/8/3 Braiam Peguero notifications@github.com
Fábio de Godoy |
Anyone is up to check MangaChapter script on the community site? I just checked adding some of the mangas you had in your list and it worked just fine and cozy. If you are using git copy try |
It breaks only when you try to load the chapters of a manga with a multiple I'm already fixing it. 2013/8/3 Braiam Peguero notifications@github.com
Fábio de Godoy |
Changing $(this).attr("title").replace(mangaName, "") Now I'm working in the multiple page chapter list issue. 2013/8/3 Fábio de Godoy mexicano21@gmail.com
Fábio de Godoy |
@braiam @mexicano21 $(".mangadata a[title]", div).each(
function(index){
var currentChapter = (this.title || '').replace(mangaName, "");
res[res.length] = [currentChapter.trim(), $(this).attr("href")];
}
); Mainly the [title], just so that it only gets links that actually have the title attr defined. |
@fuzetsu wouldn't that ignore some mangas then? Also, I bet is your manga list that's corrupted. I'm working in a diagnostic method right now... |
@braiam |
Yes, I thought on changing the selector, but I will use it as is to handle 2013/8/3 fuzetsu notifications@github.com
Fábio de Godoy |
@mexicano21 Ahh, good point, in order to get the link to the next page and continue on, good thinking. |
@fuzetsu Please try this on your background page. It should point where your list went south:
|
@braiam My list comes out clear... none of those checks go through. |
Ok, looking through the networks requests made on a refresh it looks like a bunch of them do go through but all the ones after the MangaChapter error timeout. Is it possible that the error is making them fail and the pending requests are keeping the background page tied up making it ignore the requests of the content scripts? I noticed that after it finishes timing all the requests out, that the background page finally receives the sendRequest to validate the URL from the manga pages that wouldn't load, but it logs an error because "there is not tab with that ID", because the tab that made the request closed (maybe). I figured it would all be asynchronous but I guess it's possible that something it's messing it up. |
Then lets drop your mangalist database... it's just that it's not possible that anything is wrong. Do a backup of your data first! Then go to the resources tab, hit WebSQL > AMR, you will get a console, then just type @mexicano21 Is the script ready so I can validate it? |
Almost ready. Do you believe that the image on the last page of every 2013/8/4 Braiam Peguero notifications@github.com
Fábio de Godoy |
Done!
2013/8/4 Fábio de Godoy mexicano21@gmail.com
Fábio de Godoy |
@braiam Basically the flow is like this:
The problem is that at step 7 locaScript is executing the ajax but neither the success or error functions are being called. I think it's because of all the timed out requests. |
Also, even after clearing the manga and website tables I still have the same problem... |
Another thing I've noticed.. It seems that whenever AMR loads it tries to fetch the manga list for "manga panda", it fetches www.mangapanda.com/alphabetical which leads to a warning on chrome about malware. I think that the request is being blocked and clogging up the other requests, it just shows up as pending in the network tab and never completes whereas all the requests before it go through no problem. |
OK, that was the issue, I had one manga from manga panda in my list which meant that the site had to be enabled. I removed that manga and disabled manga panda and it no longer tries to load it's manga list. Now refreshing seems to work fine. Still seems strange that not everyone is affected by it though... @braiam I'm still having issues with MangaChapter, has @mexicano21's fix gone through? @AllMangasReader-dev/developers |
While we are still at it, seens like Manga Traders and Manga Eden have the 2013/8/4 fuzetsu notifications@github.com
Fábio de Godoy |
@mexicano21 Also, does $.ajax not have a default timeout? If not we might need to add it in some places, if bad requests really are the thing messing up the updates.. |
The "Import in AMR" is not working, but "Test in Lab" is, and it do import I'll see about $.ajax. 2013/8/4 fuzetsu notifications@github.com
Fábio de Godoy |
jQuery has a timeout parameter to $.ajax calls. But ( timeout My emphasys. 2013/8/4 Fábio de Godoy mexicano21@gmail.com
Fábio de Godoy |
Interesting, I wonder if this is what we're experiencing, I can't imagine that it's running out of connections through... It was only like 30 requests or so for me. Also, I wasn't able to get test in the lab to work either. I'll have to try again I guess. |
Turns out that neither Manga Traders nor Manga Eden didn't have the Anyway, Manga Traders did has another bug, which I fixed. 2013/8/4 fuzetsu notifications@github.com
Fábio de Godoy |
@mexicano21 I modified mangapanda script so it wont ask for the full manga list, and instead search for it, but probably we should delete it (the site is dangerous as is and we should prevent infect our users with viruses, etc.), I'm looking for a way to make that all the sites dissable their keybindings (yeah, so we don't use per-site solutions) without too much luck with the @fuzetsu Yeah, I will test right now, remember to force an implementation update or you will have to wait for the scripts to expire. |
@braiam Yeah, if they don't fix the issue they'll have to be removed. It's likely something to do with their ad provider. According to their facebook page they'll have it fixed soon. |
@fuzetsu it works right now... so publishing the script. |
Yeah, looks like mangapanda fixed the issue :-) |
@fuzetsu are you able to reproduce the initial issue? If not, just close this... |
@braiam I think we should keep this open until it is confirmed that manga panda was the culprit, because that still doesn't seem 100% clear. We should also see if the other people that were reporting the issue are no longer experiencing it. |
Closing this issue since the error hasn't reoccured, meaning that the fix worked. |
A fairly serious issue seems to have appeared in the stable branch of AMR. People are reporting it on the forums, facebook, and the community page. Seemingly randomly AMR stops loading manga pages in the continuous style, as if it wasn't injecting the content scripts any more.
I have experienced this as well but bizarrely I am able to get it working again whenever it happens by disabling and re-enabling AMR.
I have been watching the background page for a while to see if any strange errors are popping up but I haven't noticed anything so far.
Is anyone else experiencing this? Any thoughts @AllMangasReader-dev/developers ?
EDIT:
The error occurs when AMR tries to refresh the manga list looking for new chapters. When it tries to do this it is unable to request the manga and times out. After this when you try to load a manga page the content script can't send a request to the background page and never executes the callback (response.isOk and all that).
The text was updated successfully, but these errors were encountered: