Skip to content

VRT NU add-on fails with HTTP 401 Unauthorized #748

@dagwieers

Description

@dagwieers

Describe the bug

Due to a change at VRT NU on 2020-05-18 at 6:00, the Kodi add-on no longer works with existing VRT NU accounts. It seems the VRT NU website on first login welcomes you and asks to verify your profile information. Once you have done this on the website, your account will work again as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Go to "My favourites" or "All programs"
  2. You will get a Kodi error
  3. The logs show an HTTP 401 Unauthorized error

Expected behavior

Your existing profile continues to work without issue.

Additional context

  • Operating system: LibreELEC v9.2.1
  • Kodi version: 18.6
  • Addon version: 2.3.2
  • Using a VPN: no
  • Country you are using the addon from: BE

Log (if available)

2020-05-18 12:02:37.608 T:1383588736  NOTICE: [plugin.video.vrt.nu] Access: plugin://plugin.video.vrt.nu/favorites
2020-05-18 12:02:37.803 T:1383588736  NOTICE: [plugin.video.vrt.nu] Got cached token '/storage/.kodi/userdata/addon_data/plugin.video.vrt.nu/tokens/vrtloginrt.tkn'
2020-05-18 12:02:37.806 T:1383588736  NOTICE: [plugin.video.vrt.nu] URL get: https://token.vrt.be/refreshtoken
2020-05-18 12:02:38.120 T:1383588736   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 401: Unauthorized
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py", line 14, in <module>
                                                run(argv)
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 336, in run
                                                plugin.run(argv)
                                              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.vrt.nu/resources/lib/addon.py", line 79, in favorites_menu
                                                VRTPlayer().show_favorites_menu()
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 120, in show_favorites_menu
                                                self._favorites.refresh(ttl=ttl('indirect'))
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 41, in refresh
                                                xvrttoken = TokenResolver().get_xvrttoken(token_variant='user')
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 78, in get_xvrttoken
                                                return self._get_fresh_token(refresh_token, 'X-VRT-Token', token_variant=token_variant)
                                              File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 262, in _get_fresh_token
                                                opener.open(req)
                                              File "/usr/lib/python2.7/urllib2.py", line 435, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
                                              File "/usr/lib/python2.7/urllib2.py", line 473, in error
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
                                              File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
                                            HTTPError: HTTP Error 401: Unauthorized
                                            -->End of Python script error report<--

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvrtmaxRelated to VRT MAX

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions