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

Installing dependencies failing #65

Open
gityunus opened this issue Sep 28, 2020 · 2 comments · May be fixed by #66
Open

Installing dependencies failing #65

gityunus opened this issue Sep 28, 2020 · 2 comments · May be fixed by #66

Comments

@gityunus
Copy link

Hi,

I am getting the following Traceback error on Windows, when attempting to download and install dependencies via Git Bash. Any help please?

Traceback (most recent call last):
File "shellshare", line 185, in
url_req.urlretrieve(script_url, script_path)
File "C:\Python38\lib\urllib\request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Python38\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Python38\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Python38\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Python38\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Python38\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

@dpshelio dpshelio linked a pull request Sep 28, 2020 that will close this issue
@dpshelio
Copy link
Contributor

I've found this is due to the server not accepting a query without a user agent (and had already been proposed a fix on #64). This can be fixed on the server-side, or in the shellshare script when calling the server. I've opened PR #66 that fixes for python3 only.
You could try to test it using my changes by:

curl -sLo shellshare https://raw.githubusercontent.com/dpshelio/shellshare/win_403_error_py3/public/bin/shellshare
python shellshare

@gityunus
Copy link
Author

Great, this worked!

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.

2 participants