WebToEpub icon indicating copy to clipboard operation
WebToEpub copied to clipboard

Fannovels.org shows error on use

Open 1k-7 opened this issue 1 year ago • 15 comments

Describe the bug A clear and concise description of what the bug is. 403 error WAANING: Site 'www.fannovels.org' has sent an Access Denied (403) error. You may need to logon or satisy a CAPTCHA before WebToEpub can continue, To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://www.fannovels.org/novel/hogwarts-dont-you-all-have-the-eye-of-god.html'
  2. Click on 'WebToEpub'
  3. Wait...
  4. See error

Expected behavior Work as usual

Screenshots Shouldn't be needed as exact error text provided

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [Samsung A73 5G]
  • OS: [One UI 6.1]
  • Browser [Kiwi]
  • Version [124.0.6327.2]

Additional context Add any other context about the problem here.

1k-7 avatar May 24 '24 14:05 1k-7

Same problem with others that use readwnparser

1k-7 avatar May 24 '24 15:05 1k-7

Are you using the Chrome version of WebToEpub? Or Firefox or some other browser? Are you using version 0.0.0.159 of WebToEpub? (Right click on the extension and manage extension to see the version) If not, I suggest updating and trying again.

Originally when I saw this bug I thought it would be connected to the FFNet Cloudflare 403 issue, but was not able to replicate it. It might still be the same issue due to some localized issues - It can't hurt to try: Link to that fix here.

I hope one of those options works... If not, providing answers to the other details asked above might help in replication.

Kiradien avatar May 24 '24 15:05 Kiradien

Used 0.0.0.159 from abt a few weeks ago. Updated from drive now 0.0.0.160. Result : no 403 error Instead Screenshot_20240524_214103_Kiwi Browser

TypeError: Error in invocation of cookies.getAll(object details, function callback): Error at parameter 'details': Unexpected property: 'partitionKey'. at HttpClient.setPartitionCookies (chrome-extension://mncobnhifkahpfkfboiblehgplpaaecm/js/HttpClient.js:209:48) at async HttpClient.wrapFetchImpl (chrome-extension://mncobnhifkahpfkfboiblehgplpaaecm/js/HttpClient.js:172:9) at async ReadwnParser.getChaptersFromAllTocPages (chrome-extension://mncobnhifkahpfkfboiblehgplpaaecm/js/Parser.js:672:27) at async ReadwnParser.getChapterUrlsFromMultipleTocPages (chrome-extension://mncobnhifkahpfkfboiblehgplpaaecm/js/Parser.js:658:16)

I used with Warp+ and without any vpn. Still nothing. Shosetsu works tho.

1k-7 avatar May 24 '24 16:05 1k-7

@1k-7 it looks like the bug mentioned here https://github.com/dteviot/WebToEpub/issues/1323#issuecomment-2126776646.

gamebeaker avatar May 24 '24 17:05 gamebeaker

Hmmm... That still doesn't explain how i solve the error.

1k-7 avatar May 24 '24 18:05 1k-7

0.0.0.157 simply doesn't work.

1k-7 avatar May 24 '24 18:05 1k-7

Unable to reproduce error with 0.0.0.159 win10 chrome. @1k-7 please give more information: Desktop (please complete the following information): OS: [e.g. iOS] Browser [e.g. chrome, safari] Version [e.g. 22] Can you share your Options? Advanced Options -> Write Options to file and upload the file in your response.

gamebeaker avatar May 24 '24 18:05 gamebeaker

Buddy it's in the issue. Default options.

1k-7 avatar May 24 '24 18:05 1k-7

Issue persists when on kiwi in work profile (fresh app).

1k-7 avatar May 24 '24 18:05 1k-7

@1k-7 you are right i missed your information. Default options doesn't help me much because i don't have them and i don't know them. 403 stands for Access Denied meaning the server says he doesn't want to give you the information. This most likely culprit is too many requests from your ip in a short time span. I think the "Default" option doesn't have a request limit enabled try enabling it. Here is the wiki link: https://github.com/dteviot/WebToEpub/wiki/Advanced-Options#manual-throttledelay-per-chapter If you write your e-mail i can send you the epub i was able to create with WebToEpub.

gamebeaker avatar May 24 '24 18:05 gamebeaker

@1k-7 @gamebeaker

I think I can explain this error.

TypeError: Error in invocation of cookies.getAll(object details, function callback): Error at parameter 'details': Unexpected property: 'partitionKey'. at HttpClient.setPartitionCookies (chrome-extension://mncobnhifkahpfkfboiblehgplpaaecm/js/HttpClient.js:209:48)

Matching code is: https://github.com/dteviot/WebToEpub/blob/e00323a6cf4d6569258dc2ebc6590e6745485fd3/plugin/js/HttpClient.js#L209

So, error is saying "This browser (Kiwi) does not know what to do with the "partitionKey" value it's been given". You may need to update to a version of the browser that supports cookie partitionKeys. Note, I see you're using a very recent version, so I'd doubt the very latest has added partitionKeys support. You could ask the developers. And/Or raise a support issue. Another option, the latest version of WebToEpub on the Mozilla store supports the Android (mobile) version of Firefox. And Firefox doesn't have issues with partition keys.

dteviot avatar May 24 '24 22:05 dteviot

For Information it looks like kiwi is based on chromium version 105 (edit: here claims kiwibrowser it is a mix between 121 and 122 i am going to create a issue for kiwibrowser) it needs to be version 119 to work right. (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies/getAll) I am surprised that @1k-7 was able to install the extension as in manifest.json "minimum_chrome_version": "119" is specified. @dteviot i think there are going to be new issues in github if WebToEpub is no longer compatible with kiwi browser. I tested the WebToEpub version 0.0.0.159 on Firefox for Android and it looks like it is working.

gamebeaker avatar May 24 '24 23:05 gamebeaker

@gamebeaker

I'm thinking, as a short term fix, could wrap the getAll in a try/catch. Not ideal, as the partitionKeys still isn't going to work for Kiwi, so cloudflare may be a problem. But it will be usable otherwise.

dteviot avatar May 25 '24 01:05 dteviot

I tried Firefox nightly begore raising the issue and it worked pretty well. Kiwi doesn't and i mostly use kiwi, which is exactly why i raised the issue.

1k-7 avatar May 25 '24 02:05 1k-7

@dteviot if try catch is implemented i would add to the 403 error message something like: if you are using Kiwi try using an other browser. until it is fixed in Kiwi.

gamebeaker avatar May 25 '24 12:05 gamebeaker

@1k-7 Updated version (1.0.0.0) has been submitted to Firefox and Chrome stores. Firefox version is available now. Chrome might be available in a few hours to 21 days.

dteviot avatar Sep 26 '24 08:09 dteviot