Invalid xml returned from API

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
Thilas
Posts: 2
Joined: Mon Apr 17, 2017 7:39 am

Invalid xml returned from API

Postby Thilas » Mon Apr 17, 2017 7:48 am

Hi,

As you can see when visiting this URL: http://thetvdb.com/api/694FAD89942D3827/series/78804/all/en.xml, the returned xml is invalid. Chrome gives the following error:

error on line 9590 at column 8: Opening and ending tag mismatch: Episode line 0 and Data


If you look closely at the xml, something is wrong writing episode 3x12 (id: 327381): it is not correctly closed (it does not even contain all its related data). And next episodes are then written right there, starting with episode 4x05 btw instead of 3x13.

Coco
Site Admin
Posts: 2617
Joined: Tue Mar 13, 2007 10:16 pm
Location: Canada

Re: Invalid xml returned from API

Postby Coco » Mon Apr 17, 2017 4:07 pm

It's already fixed. Sometimes the XML doesn't generate correctly and the series has to be resaved to fix it. Although I should note the xml based API is being turned off if you're still using it I'd highly suggest changing over to the new API.

viewtopic.php?f=3&t=36557
Please don't PM me. Post in the forums instead unless there is a very good reason for a PM or I won't respond.

Thilas
Posts: 2
Joined: Mon Apr 17, 2017 7:39 am

Re: Invalid xml returned from API

Postby Thilas » Mon Apr 24, 2017 2:23 pm

Thanks!

About using the new API, I transmitted the message to the developer.

dcadkin
Posts: 3
Joined: Tue Mar 14, 2017 4:09 am

Re: Invalid xml returned from API

Postby dcadkin » Wed May 24, 2017 10:26 pm

It is still not working for the series Arrow.

theraster
Posts: 216
Joined: Thu Nov 25, 2010 11:29 pm

Re: Invalid xml returned from API

Postby theraster » Mon May 29, 2017 11:53 am

just saw this last night, saw ep data on tvdb site but xml was lacking it for apps.. so for example in kodi:

Code: Select all

22:28:59.079 T:13228   DEBUG: ADDON::CScraper::GetEpisodeList: Searching 'http://thetvdb.com/api/<removed>/series/75638/all/en.zip' using The TVDB scraper (file: 'C:\Users\test\AppData\Roaming\Kodi\addons\metadata.tvdb.com', content: 'tvshows', version: '1.8.4')
22:28:59.088 T:13228   DEBUG: CurlFile::Open(11AE9FC8) http://thetvdb.com/api/<removed>/series/75638/all/en.zip
22:28:59.094 T:13228   DEBUG: CScraperUrl::Get: Archive "http://thetvdb.com/api/<removed>/series/75638/all/en.zip" was unpacked in memory
22:28:59.094 T:13228   DEBUG: CScraperUrl::Get: Using content of "http://thetvdb.com/api/<removed>/series/75638/all/en.zip" as binary or text with "UTF-8" charset


contents of: cache\scrapers\metadata.tvdb.com\75638-en.xml
https://pastebin.com/raw/h0wY2RY9

can see that the xml data is malformed

tried again this morning.. apps and kodi are fine now.

Midassi
Posts: 2
Joined: Sat Dec 31, 2016 5:53 am

Re: Invalid xml returned from API

Postby Midassi » Tue May 30, 2017 12:03 pm

I still get broken XML...

Coco
Site Admin
Posts: 2617
Joined: Tue Mar 13, 2007 10:16 pm
Location: Canada

Re: Invalid xml returned from API

Postby Coco » Thu Jun 01, 2017 12:54 pm

There's not much we can do. We're doing our best to keep the XML API working in the short term but ultimately it's failing. You have to convert to the new API if you want reliable results there's only so much we can do to prop up the old API.
Please don't PM me. Post in the forums instead unless there is a very good reason for a PM or I won't respond.