Skip to content

ERROR: EXCEPTION Thrown (PythonToCppException) #107

Open
@chad-miller-official

Description

@chad-miller-official

Kodi 18.9
plugin.video.twitch 2.5.11
script.module.python.twitch 2.0.19

This error occurs when trying to view any stream, past or present:

2021-10-05 19:20:01.693 T:2758550336 WARNING: script.module.python.twitch: API version |V5| is deprecated, update to |Helix| by |TBD|
2021-10-05 19:20:14.019 T:2583405376 WARNING: Previous line repeats 1 times.
2021-10-05 19:20:14.019 T:2583405376   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 0
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/addon_runner.py", line 15, in <module>
                                                router.run(sys.argv)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/router.py", line 297, in run
                                                dispatcher.dispatch(mode, queries)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/addon/common/url_dispatcher.py", line 94, in dispatch
                                                self.func_registry[mode](*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/addon/error_handling.py", line 32, in wrapper
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/router.py", line 157, in _play
                                                play.route(twitch_api, seek_time, channel_id, video_id, slug, ask, use_player, quality, channel_name)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/routes/play.py", line 117, in route
                                                videos = api.get_live(name)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/addon/error_handling.py", line 89, in wrapper
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/addon/common/cache.py", line 104, in memoizer
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/addon/api.py", line 350, in get_live
                                                results = self.usher.live(name, headers=self.get_private_credential_headers())
                                              File "/storage/.kodi/addons/script.module.python.twitch/resources/lib/twitch/parser.py", line 52, in m3u8_wrapper
                                                results = f(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.module.python.twitch/resources/lib/twitch/api/usher.py", line 136, in live
                                                token = token[0][keys.DATA][keys.STREAM_PLAYBACK_ACCESS_TOKEN]
                                            KeyError: 0
                                            -->End of Python script error report<--

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions