RedSquirrel87 / manga-downloader

A very simple application written in JAVA to download any chapters of any manga from the supported websites
37 stars 1 forks source link

Kissmanga Error while getting pages list #24

Closed RedSquirrel87 closed 5 years ago

RedSquirrel87 commented 6 years ago

Original report by Anonymous.


Seems to happen for any series on kissmanga. I saw it was an issue earlier, but site updates may have broken it again?

RedSquirrel87 commented 6 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


I just tested with a couple of manga and they still worked for here. Maybe it was just a temporary server issue? Otherwise could you link me one of the manga that gives you the issue (for example I tested with http://kissmanga.com/Manga/Eikaiwa-School-Wars and http://kissmanga.com/Manga/The-Lady-and-Her-Butler with no issue at all)

P.s.: from web can you access the manga pages without issues? I ask this because sometimes an IP can be "flagged" as bot and you have to solve a captcha from the website to unlock it

RedSquirrel87 commented 6 years ago

Original comment by Mahoro Andou (Bitbucket: VesperIndustrial, GitHub: VesperIndustrial).


I tested both of your examples starting with and without using the download queue, and with multiple and single chapters at a time resulting in the same error. I have tried restarting the program as well. I can definitely access all the pages just fine directly from the site.

UPDATE: Tried it on a different computer in a different building entirely, seems to work fine. Guess its something funny with my computer. Issue closed for me unless I can find what is different to help you see if its a more fine grained bug.

Thanks, and sorry to bother you about it

RedSquirrel87 commented 6 years ago

Original comment by Mahoro Andou (Bitbucket: VesperIndustrial, GitHub: VesperIndustrial).


Do you know where settings are saved? Deleting all of the files and redownloading the program does not appear to wipe settings (or I assume cache or any other things that occur)

RedSquirrel87 commented 6 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


For what I know the JVM stores its preferences inside the system registry

RedSquirrel87 commented 6 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


I found confirmation, yes it's the system registry, here you can find the full path in the registry where it stores them: https://stackoverflow.com/questions/1320709/preference-api-storage

RedSquirrel87 commented 6 years ago

Original comment by Mahoro Andou (Bitbucket: VesperIndustrial, GitHub: VesperIndustrial).


Darn, looks like wiping the settings and leaving everything at default didn't fix it either. Neither did uninstalling/reinstalling java. Or disabling firewall or running program as admin.

Specs if that helps at all: Program version 6.3 Windows 10 Pro x64 (1803) Ryzen 7 1700 Java 8u171

RedSquirrel87 commented 6 years ago

Original comment by Mahoro Andou (Bitbucket: VesperIndustrial, GitHub: VesperIndustrial).


Also confusing, I tried a brand new hyper-v virtual machine on the same machine and it still has the same error. Tried Java 7u5 and it couldn't find the chapters at all so I assume its too old. Tried Java 8u51 and gives the original issue error.

RedSquirrel87 commented 6 years ago

Original comment by Mahoro Andou (Bitbucket: VesperIndustrial, GitHub: VesperIndustrial).


trying out a verbose logging with java gives me:

javax.script.ScriptException: Error: Malformed UTF-8 data in at line number 1 at column number 2452 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:470) at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:392) at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190) at mainpackage.NewJFrame.DecryptKissmanga(NewJFrame.java:1691) at mainpackage.NewJFrame.GetPagesURLsKissmanga(NewJFrame.java:1743) at mainpackage.NewJFrame.access$7400(NewJFrame.java:97) at mainpackage.NewJFrame$60.run(NewJFrame.java:3038) at java.lang.Thread.run(Unknown Source) Caused by: :1:2452 Error: Malformed UTF-8 data at jdk.nashorn.internal.objects.NativeError.initException(NativeError.java:137) at jdk.nashorn.internal.objects.NativeError.(NativeError.java:102) at jdk.nashorn.internal.objects.NativeError.(NativeError.java:106) at jdk.nashorn.internal.objects.NativeError.(NativeError.java:110) at jdk.nashorn.internal.objects.NativeError.constructor(NativeError.java:129) at jdk.nashorn.internal.scripts.Script$Recompilation$121$2388A$\^eval_.L:1-1#t#stringify-2(:1) at jdk.nashorn.internal.scripts.Script$Recompilation$120$942A$\^eval_.L:1-1#t#toString(:1) at jdk.nashorn.internal.scripts.Script$Recompilation$130$42AAA$\^eval\.f1530380060573(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:643) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199) at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386) ... 6 more Decryption failed.

Not sure if that means anything to you. I changed my non-unicode settings back to english from japanese and it didn't help.

RedSquirrel87 commented 6 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


It can not decrypt the Kissmanga.com links ("Malformed UTF-8 data" is what it gets from the decryption function, not your input). This seems to be the same problem of this one here #19/cant-download-from-kissmanga , unfortunately we have really tried all the possible in the other topic to solve this issue but it seems that nothing has worked and we also have not find out what is the cause (even machines with the same OS , same configuration and same version of JVM give different results, absurd but true :S ).

RedSquirrel87 commented 6 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Could you try with the new version just releaseed (v6.4)? It implements a new method to get the decryption key that maybe could solve this issue

RedSquirrel87 commented 6 years ago

Original comment by Mahoro Andou (Bitbucket: VesperIndustrial, GitHub: VesperIndustrial).


Sorry, still has the same problem :(

RedSquirrel87 commented 6 years ago

Original comment by Arba Solomon (Bitbucket: ShiroGinchan, ).


Would like to say that I´m having the same issue with kissmanga. I tried a handful of manga, none of which worked. Have you since found out what might cause the problem? Thank you either way

RedSquirrel87 commented 6 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Unfortunately, since I can not reproduce the issue here, it's virtually impossible for me to understand where it lies and so fix it. I tried with all the PCs I have here at home (5, with 3 different OS and two different networks) and nothing. We also tried (with another user here #19/cant-download-from-kissmanga ) to debug the issue but it still brought us nowhere :S The only thing to do is to try with another PC, as reported in this page the user above got it working on a different machine

RedSquirrel87 commented 5 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Duplicate of #19.