Valentin271 / DeezerKodi

Deezer client for Kodi
GNU General Public License v3.0
24 stars 4 forks source link

Error on starting: Quota limit exceeded, please wait and retry #13

Closed sdaubert closed 1 year ago

sdaubert commented 3 years ago

Describe the bug

I have just installed DeezerKodi 0.2.1, entered my creds (checked twice) and got this error: Quota limit exceeded, please wait and retry

Environment (optional if log file provided) :

Files

Here an extract from my log file:

2021-05-09 16:08:46.603 T:1565520096 WARNING: DeezerKodi: Failed to get token from file, trying API request instead
2021-05-09 16:09:53.138 T:1565520096   ERROR: DeezerKodi: Cannot get token from API
2021-05-09 16:09:58.406 T:1442832608   ERROR: GetDirectory - Error getting plugin://plugin.audio.deezer/
2021-05-09 16:09:58.406 T:1916621744   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.deezer/) failed
2021-05-09 16:10:01.733 T:1281327328 WARNING: DeezerKodi: Failed to get token from file, trying API request instead
2021-05-09 16:10:01.936 T:1281327328   ERROR: DeezerKodi: Cannot get token from API
2021-05-09 16:10:10.211 T:1565520096   ERROR: GetDirectory - Error getting plugin://plugin.audio.deezer/
2021-05-09 16:10:10.211 T:1916621744   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.deezer/) failed
2021-05-09 16:10:15.800 T:1281327328 WARNING: DeezerKodi: Failed to get token from file, trying API request instead
2021-05-09 16:10:16.198 T:1281327328   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: 'code'
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.deezer/addon.py", line 54, in <module>
                                                CONNECTION = Connection(ADDON.getSetting('username'), ADDON.getSetting('password'))
                                              File "/home/osmc/.kodi/addons/plugin.audio.deezer/resources/lib/DeezerApi/__init__.py", line 69, in __init__
                                                self._obtain_access_token()
                                              File "/home/osmc/.kodi/addons/plugin.audio.deezer/resources/lib/DeezerApi/__init__.py", line 131, in _obtain_access_token
                                                if 'error' in json_response and json_response['error']['code'] == QuotaException.CODE:
                                            KeyError: 'code'
                                            -->End of Python script error report<--
uchi-mata commented 3 years ago

Experiencing the same issue on Kodi 17.1.

aminecmi commented 3 years ago

Same here on Kodi matrix.

lhcamilo commented 3 years ago

Same on kodi 19.0 on ubuntu 21.04

markiceman commented 3 years ago

The same problem. Kodi 18.9., Android 7.1

Valentin271 commented 3 years ago

Hello,

Do you have a premium account and is it a family or personal account ? This happens sometimes, did anyone tried again later ?

I will try to reproduce that and make it more robust.

aminecmi commented 3 years ago

@Valentin271 I have a Hi/Fi account.

This happens every single time for me.

sdaubert commented 3 years ago

@Valentin271 I have a family account. This issue always happens.

Valentin271 commented 3 years ago

@aminecmi HiFi account doesn't seems to be limited in the API.

I will try to edit a special debug version to get more informations as soon as possible.

markiceman commented 3 years ago

I have familly hifi account.

lhcamilo commented 3 years ago

I also have a Hi-fi account

On Sat, 22 May 2021 at 00:36, markiceman @.***> wrote:

I have familly hifi account.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Valentin271/DeezerKodi/issues/13#issuecomment-846294998, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARYALEGHULVVPCRUN7FGF3TO3N5ZANCNFSM44PIEVTA .

uchi-mata commented 3 years ago

Deezer Premium here.

scriptbee commented 3 years ago

same error. deezer premium.

airvb commented 3 years ago

same same here libreelec last version family account

teutat3s commented 2 years ago

I'm seeing the same here, Deezer student account on Libreelec latest version 10.0.1. Can we somehow help to debug this further?

OraDotNetDev commented 2 years ago

Removing advancedsettings.xml from ~/.kodi/userdata resolved this issue for me.

Initially tried adding <cache><buffermode>0</buffermode>... to advancedsettings.xml, which didn't work for me, but YMMV. It was a suggested fix, from this post for resolving a similar 'invalid credentials error' for the Spotify addon.

<!-- contents of advancedsettings.xml -->
<advancedsettings>
  <cache>
   <memorysize>1073741824</memorysize>
   <readfactor>20</readfactor>
  </cache>
<!-- added disablehttp2 to try and resolve issue-->
  <network>
   <disablehttp2>true</disablehttp2><!--stutter problems on livestreams-->
  </network>
</advancedsettings>
Valentin271 commented 1 year ago

Hello,

I've just released version 1.0.0 (after an incomfortably long amout of time I'll admit). This bug should be resolved now.

If you still encounter this problem, please create another issue with fresh information.