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

Pluralsight - HTTP Error 403: Forbidden (caused by HTTPError()); #8670

Closed
maestrofx opened this issue Feb 26, 2016 · 13 comments
Closed

Pluralsight - HTTP Error 403: Forbidden (caused by HTTPError()); #8670

maestrofx opened this issue Feb 26, 2016 · 13 comments

Comments

@maestrofx
Copy link

@maestrofx maestrofx commented Feb 26, 2016

I've been digging some issues related to this problem.

case#1:
youtube-dl works well on my laptop (trusty machine). But, due to pluralsight banned account and has been discussed here #6090, I run the script remotely by adding param --sleep-interval 300, so it will finish without waiting to.

case#2:
I run youtube-dl through my vps (digitalOcean). But after trying with some droplets, it doesn't work as well as my laptop.

I am curious, is this problem caused by dependencies in the machines or something missing?

This error [1] is always same for some droplets.

[1] error

[pluralsight:course] go-build-distributed-applications: Downloading course JSON
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 355, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1905, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/local/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/local/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/local/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 26, 2016

Can you watch it in browser via vps?

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 1, 2016

Hi, @dstftw,

The VPS is terminal-based, no GUI. I have no try to play it with command line.

But, the youtube-dl is working well for udemy or youtube source. Problem only for Pluralsight.

Thanks

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 1, 2016

You can setup proxy/vpn/ssh tunnel/whatever to test from remote machine.
Persistent 403 is most likely a result of banned account/IP.

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 1, 2016

Yes, it works well via VPN too. I try to execute youtube-dl via terminal with my laptop with VPN to my remote machine.
But, I got the error as described above only when I execute youtube-dl via remote machine.

Anyone have the same problem with me?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 1, 2016

It does not matter whether it works in your browser via some random vpn. It does matter whether it works in your browser when your vps is running a vpn server (or any other kind of proxying software) and you're connected via it.

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 1, 2016

@dstftw, yes, I mean I run vpn server on that remote machine and connect my laptop through it, not random vpn.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 1, 2016

Can you watch it in browser when you are connected via vpn running on your vps?

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 1, 2016

Yes, no problem with it.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 1, 2016

When you are via vpn which IP is shown here http://yt-dl.org/ip in browser? Also add -v --call-home to your youtube-dl command and post log.

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 1, 2016

do you mean I post my ip public here?

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 1, 2016

oh, wait, there is latest version 2016.03.1 and I am trying.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 1, 2016

If you are not willing to post IP check whether it matches with one from youtube-dl log and post log without the IP.

@maestrofx
Copy link
Author

@maestrofx maestrofx commented Mar 8, 2016

Hi again, @dstftw and all to experience this problem,
Sorry it's too long to update.

After playing with some vps hosted in Digital Ocean and another cloud provider I have, I can determine that the problem is an issue Pluralsight blocked Digital Ocean's access due to their administrative rules.

Thanks

@maestrofx maestrofx closed this Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.