You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 130, in
main(sys.argv[1:])
File "main.py", line 125, in main
url = get_url_book(user, book['productId'], book_assets)
File "main.py", line 52, in get_url_book
return r.json()['data']
KeyError: 'data'**
The text was updated successfully, but these errors were encountered:
Hi @KillerBabouin if you don't mind could you please print r.json() before returned it ? i think that it could be because i don't check if the file type that you enter exists. I've just fix that, pull again and if you have the same issue please show me the error
Also I'm working with python 3.6.7 and I only have book in my account.
Hello
I got the following error message. Anybody could help please?
Regards.
You are in !
You have 272 books
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=10&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=20&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=30&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=40&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=50&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=60&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=70&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=80&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=90&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=100&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=110&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=120&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=130&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=140&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=150&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=160&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=170&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=180&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=190&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=200&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=210&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=220&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=230&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=240&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=250&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=260&limit=10
https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=270&limit=10
**Error 'data'
You are in !
Traceback (most recent call last):
File "main.py", line 48, in get_url_book
return r.json()['data']
KeyError: 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 130, in
main(sys.argv[1:])
File "main.py", line 125, in main
url = get_url_book(user, book['productId'], book_assets)
File "main.py", line 52, in get_url_book
return r.json()['data']
KeyError: 'data'**
The text was updated successfully, but these errors were encountered: