Skip to content

error 500 to contact API #53

Open
Open
@valix85

Description

@valix85

there is an error when application try to use API, I think something it's changed side packtpub and it's necessary an upgrade...
You are in! URL: https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=0&limit=10 Traceback (most recent call last): File "E:\git\packtpub-downloader\main.py", line 244, in <module> main(sys.argv[1:]) File "E:\git\packtpub-downloader\main.py", line 202, in main books = get_books(user, is_verbose=verbose, is_quiet=quiet) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\git\packtpub-downloader\main.py", line 44, in get_books print(f'You have {str(r.json()["count"])} books') ~~~~~~~~^^^^^^^^^ KeyError: 'count' You are in! URL: https://services.packtpub.com/entitlements-v1/users/me/products?sort=createdAt:DESC&offset=0&limit=10 {'message': 'Internal Server Error', 'errorCode': 4000027, 'errorId': '************************'}

could you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions