AmineDerbal / scribblehub-downloader

8 stars 0 forks source link

500 internal server error "Woops! Something went wrong :(" when trying to download. #1

Open WizardLemur opened 1 year ago

WizardLemur commented 1 year ago

Summary: pressing download with the scribblehub url in the url bar results in an error 500 with "Woops! Something went wrong :(" message.

Urls tried: https://www.scribblehub.com/series/808174/soul-of-the-spirit-mage/ https://www.scribblehub.com/read/808174-soul-of-the-spirit-mage/chapter/808178/

Notes: Please let me know if I'm being dumb and didn't use the right type of url or something

AmineDerbal commented 1 year ago

Hello @WizardLemur Thank you for checking my project

The app is working fine on my side as shown here: https://www.loom.com/share/8ef472563f5a4da4be72fa646f54a3d2?sid=cb055bdc-5fb3-4db6-8e75-a2532c96673b check if you have a connection problem maybe it's the issue, if not contact me and I will try to fix the issue ASAP.

WizardLemur commented 1 year ago

Thank you for getting back to me so quickly. I'm still having problems getting it to work. I restarted my computer and re-downloaded your project, still same result. I also tired a different browser, chrome,(as I was on firefox) and it didn't make a difference. Can you think of anything I could be doing wrong, or anything that could keep me from connecting to your server?

AmineDerbal commented 1 year ago

Hi @WizardLemur I got your message. First of all this app is not deployed so there is no server Second, did you install all dependencies using npm install if you did can you make a video about the message you in your terminal

WizardLemur commented 1 year ago

Ah ok, I thought it was at some level being done on some server since it said "The pdf link last for 1 hour before being deleted from the server.". Sorry any misunderstanding. Here is a screenshot of the terminal. I think I have an idea of whats wrong here. I opened the scribblehub url in my browser and cloudflare is checking my connection before I join, could that be a problem for the scrapper?

AmineDerbal commented 1 year ago

Hi @WizardLemur I just deployed the app in this URL: https://scribblehub-downloader.onrender.com/ Check it out if it work

For your question, I updated the app a few months ago to bypass Cloudflare so I don't believe it to be the problem, If you can show me a screenshot or a video of the terminal that may be helpful

WizardLemur commented 1 year ago

Screenshot 2023-08-01 155124

Here is a screenshot

AmineDerbal commented 1 year ago

@WizardLemur The screenshot does not seem to provide the error Can you tell me your operating system Meanwhile try this link https://scribblehub-downloader.onrender.com/ if it works

WizardLemur commented 1 year ago

I am on windows 10, and the link you gave me seems to be working as of right now. The download is currently in progress.

AmineDerbal commented 1 year ago

@WizardLemur Good Tell me if it's successful About the error, I think it's a Cloudflare error It believe the app is not able to bypass the cloudflare from your side

WizardLemur commented 1 year ago

The download finished but I can't access it since the download pdf link redirects me to localhost, and the app isnt running on localhost

AmineDerbal commented 1 year ago

I'll check it out

AmineDerbal commented 1 year ago

@WizardLemur I fixed the issue of the download link check it out if it works

WizardLemur commented 1 year ago

Thank you, will do

WizardLemur commented 1 year ago

It worked!

AmineDerbal commented 1 year ago

@WizardLemur
A website that uses free hosting is very slow if I had an opportunity in the future I would build a similar desktop app It's way better

WizardLemur commented 1 year ago

yea, how would you get around the cloudflare issue? Huge thank you for helping me by the way

AmineDerbal commented 1 year ago

The app already bypasses Cloudflare, if not it would not be working. I do not exactly understand why it's not working from your side To know how to bypass Cloudflare with puppeteer check this article : https://www.zenrows.com/blog/puppeteer-cloudflare-bypass#puppeteer-cloudflare-bypass-with-puppeteer-extra-plugin-stealth

WizardLemur commented 1 year ago

Thank your for the information, I appreciate you taking the time. I guess I will just try and find a way around it on my end.