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

CloudFlare enabled website now crashing Haruneko #750

Open
MikeZeDev opened this issue Aug 16, 2024 · 6 comments
Open

CloudFlare enabled website now crashing Haruneko #750

MikeZeDev opened this issue Aug 16, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@MikeZeDev
Copy link
Contributor

MikeZeDev commented Aug 16, 2024

  • Select any Cf website
  • try to refresh manga list / fetch chapters
  • Hakuneko crashes

Doesnt seems to crash when cookies has ben transmitted from Chrome.

I got that using NWJS.

@MikeZeDev MikeZeDev added the bug Something isn't working label Aug 16, 2024
@ronny1982
Copy link
Contributor

Which NWjs versions are causing this issue

@MikeZeDev
Copy link
Contributor Author

MikeZeDev commented Aug 17, 2024

    "nw": "0.90.0-sdk",
  • It seems reproducible, try refreshing manga list for hiperdex they have CF activated right now

  • No crash with Electron.

  • Cant confirm there is no problem when we have clearance cookie before initiating request

@MikeZeDev
Copy link
Contributor Author

MikeZeDev commented Aug 17, 2024

image

Crash caused by debugger instruction from CF script (??) while executing MediaPlugin.Initialize(): Promise

  public async Initialize(): Promise<void> {
        const request = new Request(this.URI.href);
        return FetchWindowScript(request, ''); //<< THIS
    }

@MikeZeDev
Copy link
Contributor Author

MikeZeDev commented Aug 17, 2024

Its a consequence of the NWJS bug mentioned here #621.

We reject the promise with 'Failed to open window (invalid content)!', then we run into NWJS code :

image

that "resumeparser" is crashing the whole app.

https:/search?q=repo%3Anwjs%2Fnw.js+block_parser&type=code

@MikeZeDev
Copy link
Contributor Author

MikeZeDev commented Aug 17, 2024

I made a dummy app that is just doing this.

async function OpenWindow() {
    await nw.Window.open('https://hivetoon.com');
    
    await new Promise((resolve) => { setTimeout(resolve, 5000);});
    
    nw.App.closeAllWindows();
    nw.App.quit();
}
OpenWindow();


//nwjs-sdk-v0.84.0-win-x64 : load properly
//nwjs-sdk-v0.85.0-win-x64 : dont load, dont crash
//nwjs-sdk-v0.86.0-win-x64 : dont load, dont crash
//nwjs-sdk-v0.87.0-win-x64 : dont load, dont crash
//nwjs-sdk-v0.88.0-win-x64 : dont load, dont crash
//nwjs-sdk-v0.89.0-win-x64 : dont load, dont crash
//nwjs-sdk-v0.90.0-win-x64 : dont load + crash

@MikeZeDev
Copy link
Contributor Author

Tracked Here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants