View Full Version : Api Failing with 1.190 Beta
Hyrules
09-22-2010, 07:56 PM
Hi Plucky,
Today i've started my media center to an SMM not showing in my menu. So i went and look the state of the plugin in the setup menu which was disable. Tried to enable it to find out that the Api failed. Tried to uninstall / reinstall both but didn't fix the issue any way i can help you fixing this ?
Thanks,
**** Nevermind i found out that if your mediaserver has crashed or is down SMM API fails its now fix.
PLUCKYHD
09-23-2010, 06:32 AM
**** Nevermind i found out that if your mediaserver has crashed or is down SMM API fails its now fix.
Correct if it can't connect to the mymovies database it will fail.
Hyrules
09-23-2010, 04:52 PM
Would it be possible to have it display a meaningfull message instead of just failing ? Like unable to connect to the media server.
PLUCKYHD
09-23-2010, 06:13 PM
Would it be possible to have it display a meaningfull message instead of just failing ? Like unable to connect to the media server.
Out of my control because it throws a exception and sage will just have it fail which is the correct way for them to handle it. Once it fails nothing of smm loads so there is no way for me to display a message.
That being said I can tell pretty quickly from a log. ;)
Hyrules
09-23-2010, 07:13 PM
Programmatically it's a way of doing it. It can prevent problem but can cause some like having a plugin failed just because a server cannot be reached. Well... who am i to judge how sage is programmed. I'm thinking myself of programming something for sage but i dont know where to start. I'm pretty advanced in c++, c and .net. I'll have to take some time and look at the code of apis.
PLUCKYHD
09-23-2010, 07:41 PM
Programmatically it's a way of doing it. It can prevent problem but can cause some like having a plugin failed just because a server cannot be reached. Well... who am i to judge how sage is programmed. I'm thinking myself of programming something for sage but i dont know where to start. I'm pretty advanced in c++, c and .net. I'll have to take some time and look at the code of apis.
Well in this use case it should fail if the SQL server can't be reached then it is a failure that is what the logs are for ;) if it didn't stop it it would keep throwing errors and slow things down considerably.
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.