hirsivaja / plugin.video.areena

YLE Areena plugin for Kodi, using the official API.
GNU General Public License v2.0
29 stars 11 forks source link

Provide some error message to kodi user interface when authorization with keys fail #12

Closed Huxely closed 8 years ago

Huxely commented 8 years ago

I noticed that out of the blue, my Areena-plugin stopped working. It just did nothing when I tried to search or list anything. First I suspected, that it had something to do with changing to LibreElec while ago, but after installing OpenElec and entering the keys again, no luck. Then I removed the plugin manually and installed it again, but no luck. Then I went digging in to the log, and found out, that I was gettin 401 answers from yle, so I suspected that something corrupted my keys. I went to yle site and check my keys, but they were correct. Then I tested the keys with yles own link and it gave me the same 401 error, so I contacted yle and they confirmed they have some problems in their own systems, so the error was not in the plugin or my keys,

Could it be possible to get some meaningfull error from the plugin in Kodi, when the authorization with API-keys fails, so in the future I don't have to reinstall everything because of non-woking keys?

hirsivaja commented 8 years ago

Could you post some examples from the log of these errors so I would know what to look for?

miikalaaksonen commented 8 years ago

Same happened to me. Log from yesterday: ` 23:12:23 23.639418 T:3024020400 NOTICE: Running database version Addons20 23:12:23 23.646734 T:3024020400 NOTICE: Running database version ViewModes6 23:12:23 23.656311 T:3024020400 NOTICE: Running database version Textures13 23:12:23 23.692101 T:3024020400 NOTICE: Running database version MyMusic56 23:12:23 23.734228 T:3024020400 NOTICE: Running database version MyVideos99 23:12:23 23.743860 T:3024020400 NOTICE: Running database version TV29 23:12:23 23.752481 T:3024020400 NOTICE: Running database version Epg11 23:12:23 23.759880 T:3024020400 NOTICE: start dvd mediatype detection 23:12:25 26.076544 T:3024020400 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList" 23:12:26 26.437328 T:3024020400 NOTICE: ActiveAE DSP - starting 23:12:26 26.464808 T:3024020400 NOTICE: initialize done 23:12:26 26.475960 T:3024020400 NOTICE: Running the application... 23:12:28 28.421648 T:3024020400 NOTICE: starting zeroconf publishing 23:12:28 28.425648 T:3024020400 NOTICE: WebServer: Started the webserver 23:12:28 28.426096 T:3024020400 NOTICE: starting upnp client 23:12:28 28.515129 T:3024020400 NOTICE: starting upnp renderer 23:12:28 28.624422 T:2675962864 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777 23:12:28 28.624865 T:2675962864 NOTICE: UDP: Listening on port 9777 23:12:32 32.581188 T:2838811632 NOTICE: Your platform (armv6 System.Platform.Linux) 23:13:03 63.802048 T:2838811632 NOTICE: libspotify: notified main thread 23:13:03 63.818474 T:2838811632 NOTICE: Bitrate label is 320kbps 23:13:18 78.605225 T:2580542448 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

`

Huxely commented 8 years ago

Looks very familiar, I think my log was similar. I'll check when I get to my home network. Maybe the error can be replicated by inputting the keys wrong?

Huxely commented 8 years ago

Yeah same here

17:33:25 T:140388757124864 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--