Skip to content

Base URL fails to resolveΒ #216

@wfriesen

Description

@wfriesen

The URL used by this project, that has been deprecated for some time, is now officially retired. When attempting to use this project now, an error like the following occurs

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-v2launch.trakt.tv', port=443): Max retries exceeded with url: /users/xxxxxxx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f83207ae110>: Failed to resolve 'api-v2launch.trakt.tv' ([Errno -2] Name does not resolve)"))

This project seems to be abandoned, so there are two options.

Monkey patch anything importing this project by updating the base url with this:

trakt.core.BASE_URL = "https://api.trakt.tv/"

Or, switch to this fork: https://github.com/glensc/python-pytrakt
Being an active fork, development has naturally moved on, so it is not a drop-in replacement, but for my uses there wasn't much to change.

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