Page 1 of 1
API down. Error establishing a database connection.
Posted: Mon Oct 26, 2015 11:39 am
by Janoz
When calling the API I get a 500 error. It seems something is wrong with connecting to the database:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Database Error</title>
</head>
<body>
<h1>Error establishing a database connection</h1>
</body>
</html>
I'm using:
http://api.fanart.tv/webservice/series/{apikey}/153021/
Re: API down. Error establishing a database connection.
Posted: Mon Oct 26, 2015 1:55 pm
by Kode
Looks like you are using the old API, we have had some issues with the replicated database, the v3 API is back up and running as it's pointing to the main database now, I will have to resolve the issues with the replicated database before the old API can come back online though. I'd recommend switching to the newer API
Re: API down. Error establishing a database connection.
Posted: Mon Oct 26, 2015 2:08 pm
by Janoz
I noticed I was using the old version. I've rewritten my code to use the new version and everything is working now. Thanks!
Re: API down. Error establishing a database connection.
Posted: Thu Oct 29, 2015 8:40 pm
by stef.an
Is it planned to be fixed in the near future? It would be really hard to change cdART Manager for Kodi because it heavily relies on xml data.
Re: API down. Error establishing a database connection.
Posted: Thu Oct 29, 2015 11:04 pm
by Kode
No chance of swapping it to json? =/
I will try to have a look at the weekend if I get a chance, but it would be better if you could use the json version if possible, also if you do, you might want to substitute v3 for v3.1 in the url as there is a fix in 3.1 for music albums that makes the API easier to parse
Re: API down. Error establishing a database connection.
Posted: Fri Oct 30, 2015 9:52 am
by stef.an
Okay, thank's in advance!
I've "taken over" the abandoned plugin some time ago and mostly patched some incompatibilities for newer versions of Kodi. The code is really weird but just works and makes people happy.
Maybe it's time to have a deeper look at it and consider a complete rebuild. This will take weeks but luckily it's getting winter over here
