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

'errorCode': 1000100 #19

Open
yoonbird opened this issue Aug 22, 2019 · 1 comment
Open

'errorCode': 1000100 #19

yoonbird opened this issue Aug 22, 2019 · 1 comment

Comments

@yoonbird
Copy link

ERROR (please copy and paste in the issue)
{'message': 'jwt expired', 'errorCode': 1000100, 'errorId': 'e41ebd90-bdc2-4263-
aa2f-cdd7c9394156'}
401
Starting to download media/Building_an_RPG_with_Unity_5_x.code
Traceback (most recent call last):
File "main.py", line 226, in
main(sys.argv[1:])
File "main.py", line 218, in main
download_book(filename, url)
File "main.py", line 104, in download_book
r = requests.get(url, stream=True)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\requests\sessions.py", line 519, in request
prep = self.prepare_request(req)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\requests\sessions.py", line 462, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\requests\models.py", line 313, in prepare
self.prepare_url(url, params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-p
ackages\requests\models.py", line 387, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps y
ou meant http://?

BurnhamG added a commit to BurnhamG/packtpub-downloader that referenced this issue Oct 11, 2019
These changes are separate from the changes adding parallelism, and
should help work around server errors.
@BurnhamG
Copy link
Contributor

Hi @yoonbird, my apologies for taking so long to address this. I believe I have some patches that should fix this problem, as well as prevent the script from creating an empty file. Here's the info from this comment:

Below are links to a version that is this repo's master branch with slight changes to address these problems, as well as a version that includes parallel downloading (from PR #18).

Current master with patch:
https://github.com/BurnhamG/packtpub-downloader/tree/error_fix

Patch with parallel downloads:
https://github.com/BurnhamG/packtpub-downloader/tree/async

Just let me know if you have any questions, or if you continue to see this error.

BurnhamG added a commit to BurnhamG/packtpub-downloader that referenced this issue Oct 11, 2019
These changes are separate from the changes adding parallelism, and
should help work around server errors.
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