Twitch live stream not working

Hi everyone,
I am having issues with the twitch add-on. When I try to enter the “live channel” section, I get “twitch error, please see the journal for additional information”…

I managed to solve this issue on my previous setup using this thread: Issues · anxdpanic/plugin.video.twitch · GitHub](can not veiw some streams whiles other work { so far] · Issue #253 · anxdpanic/plugin.video.twitch · GitHub

But the solution does not seem to work anymore… I run OSMC on the vero 4k+ system.

Any idea how I could fix this ?

I found this error in the Kodi Log:

2020-02-23 16:12:54.992 T:3969037024 NOTICE: Twitch: Calling |_main| for mode |main| with pos args || and kwargs |{}|
2020-02-23 16:12:57.600 T:3969037024 NOTICE: Twitch: Calling |_following| for mode |following| with pos args || and kwargs |{}|
2020-02-23 16:13:01.029 T:3969037024 NOTICE: Twitch: Calling |_list_followed| for mode |followed| with pos args |[‘live’]| and kwargs |{}|
2020-02-23 16:13:01.065 T:3969037024 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: ‘_total’
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.twitch/resources/lib/addon_runner.py”, line 15, in
router.run(sys.argv)
File “/home/osmc/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/router.py”, line 297, in run
dispatcher.dispatch(mode, queries)
File “/home/osmc/.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 “/home/osmc/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/addon/error_handling.py”, line 29, in wrapper
result = func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/router.py”, line 101, in _list_followed
followed.route(twitch_api, content, offset, cursor)
File “/home/osmc/.kodi/addons/plugin.video.twitch/resources/lib/twitch_addon/routes/followed.py”, line 37, in route
if (streams[Keys.TOTAL] > 0) and (Keys.STREAMS in streams):
KeyError: ‘_total’
–>End of Python script error report<–
2020-02-23 16:13:01.228 T:3535794912 ERROR: GetDirectory - Error getting plugin://plugin.video.twitch/?content=live&mode=followed
2020-02-23 16:13:01.234 T:4071346176 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.twitch/?content=live&mode=followed) failed
2020-02-23 16:13:02.010 T:3969037024 WARNING: script.module.python.twitch: API version |V5| is deprecated, update to |Helix| by |TBD|
2020-02-23 16:13:02.843 T:3969037024 NOTICE: Twitch: Calling |_following| for mode |following| with pos args || and kwargs |{}|
2020-02-23 16:15:41.819 T:3969037024 NOTICE: Twitch: Calling |_main| for mode |main| with pos args || and kwargs |{}|
2020-02-23 16:16:08.468 T:3865010912 ERROR: EXCEPTION: Non-Existent Control 300
2020-02-23 16:16:27.519 T:3643871968 WARNING: CPythonInvoker(12): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
2020-02-23 16:17:20.281 T:3669050080 WARNING: CPythonInvoker(13): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.

The Twitch addon will break whenever Twitch makes changes to their api, you need to install the latest release

If something still isn’t working you should report it to the addon author over on the Kodi forum or on Github.

Thank you for your answer. The strange thing is it still works on my previous setup…
I will try to install the latest release and see if anything changes.

For anyone having the same issue, installing the latest version (here 2.4.9) solved the issue.
Thank you very much for the link !