-
Notifications
You must be signed in to change notification settings - Fork 83
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
Error 'jwt expired' #9
Comments
Same problem here. Do you have a lot of items to download like me (<1000)? |
I had also this problem and used I had to split up downloads to get all my paid and free packtpub books; else even all books are nearly downloaded the check/output of Else thanks for updating this nice tool to the new api 👍 |
Still the same problem |
change the following lines in main.py: line 67: get_url_book(user, book_id, format) -> return get_url_book(user, book_id, format) line 88: get_book_file_types(user, book_id, format) -> return get_book_file_types(user, book_id, format) |
I got an error
You are in!
ERROR (please copy and paste in the issue)
{'message': 'jwt expired', 'errorCode': 1000100, 'errorId': '61a76feb-f05c-4e4e-83bb-8e739d534730'}
401
Starting to download D:\Workspace\packtpub-downloader\ebook/Raspberry_Pi_for_Secret_Agents_-_Third_Edition.epub
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:\Python\3\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Python\3\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python\3\lib\site-packages\requests\sessions.py", line 519, in request
prep = self.prepare_request(req)
File "C:\Python\3\lib\site-packages\requests\sessions.py", line 462, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\Python\3\lib\site-packages\requests\models.py", line 313, in prepare
self.prepare_url(url, params)
File "C:\Python\3\lib\site-packages\requests\models.py", line 387, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant http://?
The text was updated successfully, but these errors were encountered: