Parse Error in Channel List
#1
I just set up a fresh install of Gotham with the MythTV client and successfully connected to the back end on a different computer. I can view all the recordings but the channel list and the program guide are blank. The PVR status page shows zero channels found. The channels appear correctly on the Android app and on separate computer running the MythTV frontend.

It looks like there is a parse error with the channels. There are no other errors in the log. I think one of the channels might have an illegal character or delimiter in its name. If so I should be able to rename the offending channel in the MythTV backend. I'll try that later tonight.

So here's the part of the log that deals with the error:

Code:
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)SendRequest: GET /Channel/GetChannelInfoList?SourceID=%31&StartIndex=%30&Count=%31%30%30 HTTP/1.1
                                            Host: 192.168.1.100:6544
                                            Connection: keep-alive
                                            Accept: application/json
                                            Accept-Charset: utf-8
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: HTTP/1.1 200 OK
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Date: 7 Nov 2014 15:38:33
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Server: Linux 3.13.0-37-generic, UPnP/1.0, MythTV 0.27.20140323-1
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Accept-Ranges: bytes
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Cache-Control: no-cache="Ext", max-age = 5000
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: ETag: "3079e68f17b867ba3f5ff8f46ec5e77ad290e775"
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Connection: Keep-Alive
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Content-Type: application/json
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse: Content-Length: 7223
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)GetResponse:
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)ParseResponseJSON: {"ChannelInfoList": {"StartIndex": "0", "Count": "13", "CurrentPage": "1", "TotalPages": "1", "TotalAvailable": "13", "AsOf": "2014-11-07T15:38:33Z", "Version": "0.27.20140323-1", "ProtoVer": "77", "ChannelInfos": [{"ChanId": "1021", "ChanNum": "2_1", "CallSign": "KTVQ-DT", "IconURL": "", "ChannelName": "KTVQ-DT", "MplexId": "1", "TransportId": "1739", "ServiceId": "1", "NetworkId": "0", "ATSCMajorChan": "2", "ATSCMinorChan": "1", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "195000000", "FrequencyId": "10", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1022", "ChanNum": "2_2", "CallSign": "CW NET", "IconURL": "", "ChannelName": "CW NET", "MplexId": "1", "TransportId": "1739", "ServiceId": "2", "NetworkId": "0", "ATSCMajorChan": "2", "ATSCMinorChan": "2", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "195000000", "FrequencyId": "10", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1041", "ChanNum": "4_1", "CallSign": "KHMT-DT", "IconURL": "", "ChannelName": "KHMT-DT", "MplexId": "6", "TransportId": "1763", "ServiceId": "3", "NetworkId": "0", "ATSCMajorChan": "4", "ATSCMinorChan": "1", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "521000000", "FrequencyId": "22", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1061", "ChanNum": "6_1", "CallSign": "KSVI-DT", "IconURL": "", "ChannelName": "KSVI-DT", "MplexId": "5", "TransportId": "1741", "ServiceId": "3", "NetworkId": "0", "ATSCMajorChan": "6", "ATSCMinorChan": "1", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "497000000", "FrequencyId": "18", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1081", "ChanNum": "8_1", "CallSign": "KULR-HD", "IconURL": "", "ChannelName": "KULR-HD", "MplexId": "2", "TransportId": "1743", "ServiceId": "3", "NetworkId": "0", "ATSCMajorChan": "8", "ATSCMinorChan": "1", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "201000000", "FrequencyId": "11", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1082", "ChanNum": "8_2", "CallSign": "KULRSWX", "IconURL": "", "ChannelName": "KULRSWX", "MplexId": "2", "TransportId": "1743", "ServiceId": "4", "NetworkId": "0", "ATSCMajorChan": "8", "ATSCMinorChan": "2", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "201000000", "FrequencyId": "11", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1141", "ChanNum": "14_1", "CallSign": "YVC-DTV", "IconURL": "", "ChannelName": "YVC-DTV", "MplexId": "3", "TransportId": "1", "ServiceId": "1", "NetworkId": "0", "ATSCMajorChan": "14", "ATSCMinorChan": "1", "Format": "ATSC", "Modulation": "8vsb", "Frequency": "473000000", "FrequencyId": "14", "FrequencyTable": "default", "FineTune": "0", "SIStandard": "atsc", "ChanFilters": "", "SourceId": "1", "InputId": "0", "CommFree": "0", "UseEIT": "true", "Visible": "true", "XMLTVID": "", "DefaultAuth": "", "Programs": []},{"ChanId": "1161", "ChanNum": "16_1", "CallSign": "KBGS-HD", "IconURL": "", "ChannelName": "KBGS-HD, Billings, MT", "MplexId": "4", "Trans
08:38:33 T:2843736896   ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)ParseResponseJSON: failed to parse: 1: premature end of input near '"EICB TV EAST, LLC'
08:38:33 T:2843736896   ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetChannelList1_2: unexpected content
08:38:33 T:2843736896   DEBUG: AddOnLog: MythTV PVR Client: GetChannels: Done
Reply
#2
Hi @bkaz,
Can you download the full response from backend using your web browser with the url:

http://server:6544/Channel/GetChannelInf...=%31%30%30

Where server = the ip of your backend.

Thanks
Reply
#3
@bkaz any news ?
Reply
#4
I am getting the same error.

Using the getchannel info url gives me this:

"This page contains the following errors:

error on line 1 at column 13200: Char 0x0 out of allowed range
Below is a rendering of the page up to the first error.

03011302014-11-27T02:40:20Z0.27.20141016-17710434_3KTVX-DTWeather Nation1130013043ATSC8vsb62900000040default0atsc100truetrue10525_2COZI-TVCOZI-TV830036052ATSC8vsb61700000038default0atsc100truetrue10535_3KSL-Wx KSL Weather830034053ATSC8vsb61700000038default0atsc100truetrue10717_1KUED-HDKUED-HD930053071ATSC8vsb64100000042default0atsc100truetrue10727_2WorldWorld930054072ATSC8vsb64100000042default0atsc100truetrue10737_3V-MeV-Me930055073ATSC8vsb64100000042default0atsc100truetrue10919_1KUENKUEN729913091ATSC8vsb60500000036default0atsc100truetrue10929_2MHzWrldMHzWrld729914092ATSC8vsb60500000036default0atsc100truetrue116316_3IONLifeKUPX Life5299350163ATSC8vsb56300000029default0atsc100truetrue116416_4ShopKUPX Shop5299360164ATSC8vsb56300000029default0atsc100truetrue116516_5QVCKUPX QVC5299370165ATSC8vsb56300000029default0atsc100truetrue116616_6HSNHSN5299380166ATSC8vsb56300000029default0atsc100truetrue11819_91KUER-FMKUER-FM72991910991ATSC8vsb60500000036default0atsc100truetrue120120_1KTMW-D1KTMW-D11393130201ATSC8vsb50900000020default0atsc100truetrue120220_2KTMW-D2KTMW-D21393140202ATSC8vsb50900000020default0atsc100truetrue120320_3KTMW-D3KTMW-D31393150203ATSC8vsb50900000020default0atsc100truetrue120420_4KTMW-D4KTMW-D41393160204ATSC8vsb50900000020default0atsc100truetrue124124_1KPNZ-DTKPNZ-DT2400910241ATSC8vsb53300000024default0atsc100truetrue125125_1KSVN-LD

"

I noticed that if I change the url to http://server:6544/Channel/GetChannelInf...0&Count=18 . It returns an XML without any errors. If count >=19 I get the Char 0x0 out of allowed range error.

Hmm...just went into my mythtv-setup channel editor and noticed there were triangles after the name..assuming they were invalid characters...I deleted the empty characters and now I get a normal XML response when requesting the full range...now to test it with kodi pvr.mythtv
Reply
#5
Sweet, all is well now. Thanks for the pointer janbar!
Reply

Logout Mark Read Team Forum Stats Members Help
Parse Error in Channel List0