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

HTTPError: Response code 404 (Not Found) #9

Open
anneke opened this issue Sep 27, 2020 · 3 comments
Open

HTTPError: Response code 404 (Not Found) #9

anneke opened this issue Sep 27, 2020 · 3 comments

Comments

@anneke
Copy link

anneke commented Sep 27, 2020

Hi,

thank you for making this script! Unfortunately I get an error when I try to use it:

$ urls-md list-of-urls.txt
HTTPError: Response code 404 (Not Found)
    at stream.catch.then.data (/usr/local/lib/node_modules/urls-md/node_modules/got/index.js:123:13)
    at process._tickCallback (internal/process/next_tick.js:68:7)

I went into the urls-md local directory (from my global install), and I ran npm install seperately. Once I did that and went back to run the above script again, I got the same error, but a file was created in my original directory (a list-of-urls.md.txt, which I find confusing, so perhaps I misunderstood the workings/goal of this module :) )

@anneke
Copy link
Author

anneke commented Sep 27, 2020

Additional note: yes I did misunderstand what this does, sorry! The text document I was trying to do something with only contains a list of url's (each on a new line) that I wanted to download as seperate markdown files. I suppose that the different format of my text file caused the problem?

@sindresorhus
Copy link
Owner

Your use-case is indeed different than what this does. As for the error, it seems one of the links pointed to a non-existing site. The bug here is that this package should more gracefully handle that situation.

@anneke
Copy link
Author

anneke commented Oct 3, 2020

Thanks for the explanation @sindresorhus !

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

No branches or pull requests

2 participants