Skip to content

Custom Error Message for NoContentToError403 userPref - #2987

Merged
gamebeaker merged 3 commits into
dteviot:ExperimentalTabModefrom
Yomafil:fix/no-content-to-403-error-warning-message
Sep 15, 2026
Merged

gamebeaker merged 3 commits into
dteviot:ExperimentalTabModefrom
Yomafil:fix/no-content-to-403-error-warning-message

Conversation

@Yomafil

@Yomafil Yomafil commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Add a custom error message when a user has selected the Treat 'no content found error' as 'HTTP 403 error'. user preference.

@gamebeaker

Copy link
Copy Markdown
Collaborator

It also shows the new warning even if it is a real 403 error. Is that intended?

@Yomafil

Yomafil commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

No, that shouldn't be happening.

@Yomafil

Yomafil commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

Tested and should be working now.

@gamebeaker

Copy link
Copy Markdown
Collaborator

@Yomafil i meant that it shows the new warning if "Treat 'no content found error' as 'HTTP 403 error'." is selected and WebToEpub gets a real 403 error from the Network.

WebToEpub gets a real 403 Network error and the message is that:

Error: Warning: No content found on target page, treated as site `www.scribblehub.com` sending an Access Denied (403) error.
You may need to logon to site, or browse site normally
until you get a Cloudflare "Are you a human" page or satisfy some other CAPTCHA
before WebToEpub can continue.
...

As it says "No content found" i find it misleading. But it is just a minor complaint. I mean technically it couldn't find the content as it got a 403 response.

@Yomafil

Yomafil commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

@gamebeaker
I kept it that way because the primary use case for the option is for when a site sends a challenge page and we have no way in the parser to recognize it, leading to a No Content Found error which stops the downloading with no option to clear the captcha or retry downloading the chapter.
So instructing the user on how to proceed from there sounded good to me.
I can always change the name of the option to something clearer as Treat 'no content found error' as 'HTTP 403 error'. isn't very clear on what an HTTP 403 error means.
Maybe changing the option name in the advanced option view to Allow retry on 'No Content Found' error would be better?

@Yomafil

Yomafil commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

@gamebeaker
I might have misread your comment.

i meant that it shows the new warning if "Treat 'no content found error' as 'HTTP 403 error'." is selected and WebToEpub gets a real 403 error from the Network.

WebToEpub gets a real 403 Network error and the message is that:

This should have been fixed. When the option is unselected, it should now throw the real HTTP 403 error message and not the No Content -> Error 403 error message.
This was unintended behavior.

@gamebeaker

Copy link
Copy Markdown
Collaborator

I think there is a slight misunderstanding. It doesn't matter.

Maybe changing the option name in the advanced option view to Allow retry on 'No Content Found' error would be better?

I would be for that as 403 etc is cryptic for non it people.

@gamebeaker
gamebeaker merged commit 8de3e26 into dteviot:ExperimentalTabMode Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants