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

301 problem #68

Open
mihazoubek opened this issue Aug 18, 2019 · 3 comments
Open

301 problem #68

mihazoubek opened this issue Aug 18, 2019 · 3 comments

Comments

@mihazoubek
Copy link

Hello

i am getting this:

{ response:
{ debugId: 1,
headers:
{ 'content-type': 'text/html',
location: 'https://www.oreilly.com/oauth2/access_token/',
'content-length': '0',
'accept-ranges': 'bytes',
date: 'Sun, 18 Aug 2019 07:25:14 GMT',
via: '1.1 varnish',
connection: 'close',
'x-client-ip': 'xxx.xxx.xxx.xxx',
'x-served-by': 'cache-fra19175-FRA',
'x-cache': 'MISS',
'x-cache-hits': '0',
'x-timer': 'S1566113115.834431,VS0,VE143' },
statusCode: 301,
body: undefined } }
[safari-downloader] StatusCodeError: 301 - undefin

this is redirection. Is there any way to fix this?

tnx
miha

@kyledev80020
Copy link

This worked for me, maybe it will work for you. You actually pointed me to it by making the "redirection" comment! So also, thanks! :-)

in the file ./lib/safari/index.js, change this.baseUrl on line 18 to...

this.baseUrl = "https://learning.oreilly.com";

@rtmor
Copy link

rtmor commented Sep 8, 2019

@kyledev80020

Thanks for that! Worked perfectly.

@bayethiernodiop
Copy link

you may also need to do npm install again, that's what i needed to make it work

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 a pull request may close this issue.

4 participants