Toon stopped working as of 16-06

Hi all,

Im new to this forum so excuse me if im doing this wrong :wink:

But as of 16-06 update 0.111.3 Toon stopped working with following error in the logs:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 149, in _get_challenge_code
    code = location.split('code=')[1].split('&scope')[0]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/toon/__init__.py", line 82, in async_setup_entry
    display_common_name=entry.data[CONF_DISPLAY],
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 113, in __init__
    self._authenticate()
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 157, in _authenticate
    code = self._get_challenge_code()
  File "/usr/local/lib/python3.7/site-packages/toonapilib/toonapilib.py", line 152, in _get_challenge_code
    raise InvalidCredentials(response.text)
toonapilib.toonapilibexceptions.InvalidCredentials

I tried a new set of keys, i tried a new password, but nothing seems to help.

Can someone point me in the right direction ?

Greeting, Eric from The Netherlands

Hi Eric.

I don’t use Toon, but in general for issues like this where I’ve confirmed credentials etc. I check the issues section of the HomeAssistant github to see if there is a known issue.

In this instance, searching for open issues for Toon gives me this existing report, indicating that a fix is in progress for a change in authentication (hence the message about InvalidCredentials you received).
I tend to subscribe to notifications (using my github account) for issues or changes I’m interested in (or in need of).

If an issue hasn’t been raised then it is possible to raise one (after making sure it’s not an issue with individual configuration / platform etc. obviously).

With the issue number noted down, you will be able to see in the HA release notes when the fix is released.

1 Like

Hi TazUK,

Thx !!

I didnt know that section on Gihub.
Thanks alot for pointing me in the right direction.
:smiley:

1 Like