Skip to content
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 during refresh auth token: 426 Client Error: Upgrade Required #400

Open
freynder opened this issue Jan 11, 2025 · 3 comments
Open

Comments

@freynder
Copy link

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

@trick72
Copy link

trick72 commented Jan 13, 2025

Same issue here. Tried to watch a program from VTM with this plugin on Kodi (RPI 5 , latest version) and got same error. So I think it's a general problem, sadly. Anyone available to work on it?

@aGreatDay
Copy link

There is a fork of this project that has the updates, which works for me

@trick72
Copy link

trick72 commented Jan 17, 2025

Oh, many thanks for pointing this out. Correct, the fork of HenkV1 updates the API to 1.8 and now it works fine again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants