Taiko2k / Tauon

The music player of today! :city_sunrise:
https://tauonmusicbox.rocks
GNU General Public License v3.0
1.64k stars 64 forks source link

OpenSubsonic auth error #1112

Open stkw0 opened 3 months ago

stkw0 commented 3 months ago

I'm not sure if it's an issue with LMS (the subsonic server I use) or tauon, but since some other subsonic clients work with LMS I thought could be useful to report it here.

When trying to log it reports the next error. I also tried using plain text but then it fails directly. Even if the root cause is not an issue with tauon It would be nice if tauon could at least properly parse the error and show it to the user.

Subsonic Error: {"subsonic-response":{"openSubsonic":true,"serverVersion":"6","status":"failed","type":"lms","version":"1.16.0","error":{"code":41,"message":"Token authentication not supported for LDAP users."}}}
Exception in thread Thread-28 (get_music3):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.11/site-packages/t_modules/t_main.py", line 8638, in get_music3
    b = a["subsonic-response"]["indexes"]["index"]
        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'indexes'
Taiko2k commented 3 months ago

Do you get any kind of error when plain text mode is enabled?

stkw0 commented 3 months ago

Nope, in plain text mode there is just a messagebox saying that there was an authentication failure but the console doesn't shows anything.