Skip to content

Error during refresh auth token: 426 Client Error: Upgrade Required #400

@freynder

Description

@freynder

Describe the bug
When launching the addon it displays an error stating to check the error log

To Reproduce
Steps to reproduce the behavior:

  1. Click addons->VTM GO

Expected behavior
Open VTM Go Addon

Screenshots
none

Logs

2025-01-11 19:23:45.301 T:4212    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'requests.exceptions.HTTPError'>
                                                   Error Contents: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/VTM_GO/tokens/refresh
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/addon_entry.py", line 19, in <module>
                                                       run(argv)
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 191, in run
                                                       routing.run(params)
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/addon.py", line 87, in show_detail
                                                       Catalog().show_detail(item)
                                                       ^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/modules/catalog.py", line 25, in __init__
                                                       self._api = VtmGo(auth.get_tokens())
                                                                         ^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/vtmgoauth.py", line 145, in get_tokens
                                                       response = util.http_post('https://lfvp-api.dpgmedia.net/VTM_GO/tokens/refresh', data={
                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py", line 77, in http_post
                                                       return _request('POST', url=url, params=params, form=form, data=data, token=token, profile=profile, headers=headers)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.vtm.go/resources/lib/vtmgo/util.py", line 184, in _request
                                                       response.raise_for_status()
                                                     File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 1021, in raise_for_status
                                                       raise HTTPError(http_error_msg, response=self)
                                                   requests.exceptions.HTTPError: 426 Client Error: Upgrade Required for url: https://lfvp-api.dpgmedia.net/VTM_GO/tokens/refresh
                                                   -->End of Python script error report<--

System

2025-01-11 19:21:30.187 T:3962     info <general>: Starting Kodi (21.1 (21.1.0) Git:72f13fb388a529094b8d5b5274ed0e5f1a2af8da). Platform: Linux ARM 32-bit
2025-01-11 19:21:30.188 T:3962     info <general>: Using Release Kodi x32
2025-01-11 19:21:30.188 T:3962     info <general>: Kodi compiled 2024-08-26 by GCC 13.2.0 for Linux ARM 32-bit version 4.9.255 (264703)
2025-01-11 19:21:30.188 T:3962     info <general>: Running on Amlogic with CoreELEC (official): 21.1.1-Omega, kernel: Linux ARM 64-bit version 4.9.269

Additional context
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions