SafariBooks-Downloader icon indicating copy to clipboard operation
SafariBooks-Downloader copied to clipboard

All books returning 404?

Open brennebeck opened this issue 6 years ago • 22 comments

Hi,

Just recently books started returning 404:

$ safaribooks-downloader -u user -p "password" -o ./books/book.epub -b id
[safari-downloader] starting application...
[safari-downloader] the user "[email protected]" was successfully authorized...
[safari-downloader] StatusCodeError: 404 - {}

This is happening for all books I try.

brennebeck avatar Nov 22 '18 08:11 brennebeck

I'm having the same problem.

Rafaelj avatar Nov 23 '18 02:11 Rafaelj

Hi guys, please refer to my pull request https://github.com/nicohaenggi/SafariBooks-Downloader/pull/40 . It is not yet merged, so meanwhile you can use my fork. Feel free to review the commits for your own security.

hypr2771 avatar Nov 26 '18 01:11 hypr2771

Hi Vincent, awesome! Thanks! I’ll test as well 👍

Best Regards, Bernd


From: Vincent C [email protected] Sent: Monday, November 26, 2018 9:38 AM To: nicohaenggi/SafariBooks-Downloader Cc: Bernd Rennebeck; Author Subject: Re: [nicohaenggi/SafariBooks-Downloader] All books returning 404? (#42)

Hi guys, please refer to my pull request. It is not yet merged, so meanwhile you can use my fork. Feel free to review the commits for your own security. #40https://github.com/nicohaenggi/SafariBooks-Downloader/pull/40

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/nicohaenggi/SafariBooks-Downloader/issues/42#issuecomment-441494586, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEjeDBeSvIDsryQsdcz0puF6MkNBY-xpks5uy0YYgaJpZM4Yu2Ok.

brennebeck avatar Nov 26 '18 01:11 brennebeck

Hi guys, please refer to my pull request #40 . It is not yet merged, so meanwhile you can use my fork. Feel free to review the commits for your own security.

I tried your fork but I'm still getting a [safari-downloader] StatusCodeError: 404 - {}

ElegantPercentage avatar Nov 27 '18 18:11 ElegantPercentage

Hi guys, please refer to my pull request #40 . It is not yet merged, so meanwhile you can use my fork. Feel free to review the commits for your own security.

I tried your fork but I'm still getting a [safari-downloader] StatusCodeError: 404 - {}

Hi, sorry to hear that. I will push a way to debug request on this fork, so I can help you out because I have actually nothing to know what happens. I will create a new issue and mention it here.

hypr2771 avatar Nov 27 '18 18:11 hypr2771

I've checked out dev branch here and ran it, but it did not work. So, I applied the same change locally (remove the dashes) and it worked fine. Thanks!

Rafaelj avatar Nov 28 '18 02:11 Rafaelj

I've checked out dev branch here and ran it, but it did not work. So, I applied the same change locally (remove the dashes) and it worked fine. Thanks!

Are you talking about the dash on line 154 & 174? Because I tried that earlier.

ElegantPercentage avatar Nov 28 '18 02:11 ElegantPercentage

Hi guys @ElegantPercentage and @Rafaelj, I added a debug option in my fork hypr2771:dev. Can you please then retry using the -d or --debug flag and post the output in order to be able to analyze your issue ?

Also, are you running my fork or running the dev branch of this project ?

Thank you guys !

hypr2771 avatar Nov 28 '18 11:11 hypr2771

Hi,

@ElegantPercentage and @Rafaelj, did you install the tool globally before? I think you just need to trigger npm install -g on your checkout to ensure you are using the tool with the latest patches.

I tried fetching the changes of @hypr2771, and also experienced the same 404 issue. Tried using the -d flag where it complained that the option was unknown. So I figured it might be running the old version. Simply reinstalling the tool does the trick for me.

kendlee avatar Nov 30 '18 16:11 kendlee

Hi guys,

i have the same problem getting the following error. StatusCodeError: 404 that's the error i get just after "the user [my user id] was successfully authorized...

i tried reinstalling and running it on a different book.

TuxyKey avatar Dec 02 '18 16:12 TuxyKey

Hi @TuxyKey, can you copy/paste the output of

echo `git remote get-url origin`:`git branch --format='%(refname)'`

please ?

hypr2771 avatar Dec 02 '18 17:12 hypr2771

Same issue here!

https://github.com/nicohaenggi/SafariBooks-Downloader.git:refs/heads/master

triangulum avatar Dec 03 '18 01:12 triangulum

Hi @triangulum. As you can see

https://github.com/nicohaenggi/SafariBooks-Downloader.git:refs/heads/master

Tells us you are on nicohaenggi repository, and on master branch. As my PR is not merged yet, you need to pull my fork here and git checkout dev to make sure you are on the current development branch.

You will then need to reinstall using npm uninstall safaribooks-downloader && npm -g install in the fork directory. A simple way of making sure you have the right version is to add a --debug flag to your safaribooks-downloader previous command.

If it runs and print some debugging info about HTTP request, you made it right, if not, answer here for more assistance.

hypr2771 avatar Dec 03 '18 05:12 hypr2771

Hi @triangulum. As you can see

https://github.com/nicohaenggi/SafariBooks-Downloader.git:refs/heads/master

Tells us you are on nicohaenggi repository, and on master branch. As my PR is not merged yet, you need to pull my fork here and git checkout dev to make sure you are on the current development branch.

You will then need to reinstall using npm uninstall safaribooks-downloader && npm -g install in the fork directory. A simple way of making sure you have the right version is to add a --debug flag to your safaribooks-downloader previous command.

If it runs and print some debugging info about HTTP request, you made it right, if not, answer here for more assistance.

Thanks mate

yaasin12 avatar Dec 03 '18 13:12 yaasin12

Hi @triangulum. As you can see

https://github.com/nicohaenggi/SafariBooks-Downloader.git:refs/heads/master

Tells us you are on nicohaenggi repository, and on master branch. As my PR is not merged yet, you need to pull my fork here and git checkout dev to make sure you are on the current development branch. You will then need to reinstall using npm uninstall safaribooks-downloader && npm -g install in the fork directory. A simple way of making sure you have the right version is to add a --debug flag to your safaribooks-downloader previous command. If it runs and print some debugging info about HTTP request, you made it right, if not, answer here for more assistance.

Thanks mate

Hi, I'm new.

How do I pull the fork for hypr2771?

Thanks!

kimlien123 avatar Dec 15 '18 05:12 kimlien123

Hi @kimlien123 ! Sorry for the late reply, been quite busy... While my pull request is being reviewed, you can pull my fork by doing a simple

git clone [email protected]:hypr2771/SafariBooks-Downloader.git

Good luck !

hypr2771 avatar Dec 30 '18 21:12 hypr2771

Thanks!

I'll check it out!

On Sun, Dec 30, 2018 at 1:39 PM Vincent Castelluci [email protected] wrote:

Hi @kimlien123 https://github.com/kimlien123 ! Sorry for the late reply, been quite busy... While my pull request https://github.com/nicohaenggi/SafariBooks-Downloader/pull/40 is being reviewed, you can pull my fork https://github.com/hypr2771/SafariBooks-Downloader by doing a simple

git clone [email protected]:hypr2771/SafariBooks-Downloader.git

Good luck !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nicohaenggi/SafariBooks-Downloader/issues/42#issuecomment-450588421, or mute the thread https://github.com/notifications/unsubscribe-auth/Arwzo5BYjqTTJZalqhjbYY4scWd_3f9tks5u-TKvgaJpZM4Yu2Ok .

kimlien123 avatar Jan 03 '19 18:01 kimlien123

hi @hypr2771

I am using your fork, dev branch, but facing this problem, could you please show how to fix this

[safari-downloader] starting application...
[safari-downloader] the user "[email protected]" was successfully authorized...
[safari-downloader] StatusCodeError: 403 - {"detail":"You do not have permission to perform this action."}

ninhdhx avatar Jan 11 '19 16:01 ninhdhx

hi @hypr2771

I am using your fork, dev branch, but facing this problem, could you please show how to fix this

[safari-downloader] starting application...
[safari-downloader] the user "[email protected]" was successfully authorized...
[safari-downloader] StatusCodeError: 403 - {"detail":"You do not have permission to perform this action."}

Hi @ninhdh0 ! Would you mind opening new issues if they are unerelated to this one (404). This will allow people to find more easily already solved issues similar to theirs. Concerning your issue, could you make sure you can log into Safari website and have access to the book you are trying to download ? I guess your account is a free account which reached it's expiration date already.

hypr2771 avatar Jan 11 '19 16:01 hypr2771

I have finally merged @hypr2771 pull request #40 for fixing the 404 error. Thanks for the input @hypr2771 , I really do appreciate the help.

nicohaenggi avatar Jan 16 '19 23:01 nicohaenggi

Does anyone knows what this status stands for?

[safari-downloader] starting application... [safari-downloader] StatusCodeError: 302 - undefined

robertmarinescu avatar Apr 17 '19 18:04 robertmarinescu

I am copying this in reference to Issue#83

Hi,

I am experiencing the error message below.

[safari-downloader] starting application... [safari-downloader] the user "[email protected]" was successfully authorized... [safari-downloader] StatusCodeError: 404 - {"detail":"Not found."}

I have performed the following to re mediate

Tried the steps on code section as it is but i got error 301 So i did this in the file ./lib/safari/index.js, change this.baseUrl on line 18 to... this.baseUrl = "https://learning.oreilly.com";

I got error 404 I used git clone https://github.com/hypr2771/SafariBooks-Downloader Uninstall and reinstall npm -g I am still getting the error 404 :( [safari-downloader] starting application... [safari-downloader] the user "[email protected]" was successfully authorized... [safari-downloader] downloaded meta files... [safari-downloader] downloaded table of content files... [safari-downloader] downloaded chapter files... [safari-downloader] downloaded stylesheet files...

Help please :( I am a script "kiddie" sorry I know an issue was opened exactly like this, I tried the work around with the fork and I know it was merged but I am not sure what to do next sorry.

ejadol avatar Dec 05 '19 08:12 ejadol