API down. Error establishing a database connection.

Post here any issues with the API or feature requests
Post Reply
Janoz
Posts: 2
Joined: Mon Oct 26, 2015 11:36 am

API down. Error establishing a database connection.

Post 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/
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API down. Error establishing a database connection.

Post 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
Janoz
Posts: 2
Joined: Mon Oct 26, 2015 11:36 am

Re: API down. Error establishing a database connection.

Post 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!
stef.an
Posts: 3
Joined: Thu Oct 29, 2015 8:36 pm

Re: API down. Error establishing a database connection.

Post 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.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API down. Error establishing a database connection.

Post 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
stef.an
Posts: 3
Joined: Thu Oct 29, 2015 8:36 pm

Re: API down. Error establishing a database connection.

Post 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 ;)
Post Reply