Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fischb0ne
Visitor

Creating a New Channel

I am creating my first Roku channel and I am getting a "can't parse feed" error when trying to play my channel. I have checked the xml and there doesn't seem to be an error in those files. What could be my problem?

Here is the error code:

BrightScript Debugger> ------ Running ------
created feed connection for http://www.godaddy.com/Roku/xml/categories.xml
url: http://www.godaddy.com/Roku/xml/categories.xml
Took: 472ms
Can't parse feed
Current Function:
034: Function get_category_names(categories As Object) As Dynamic
035:
036: categoryNames = CreateObject("roArray", 100, true)
037:
038: for each category in categories.kids
039: 'print category.Title
040: categoryNames.Push(category.Title)
041: next
042:
043: return categoryNames
044:
045: End Function
216: BrightScript Debugger> ------ Running ------
217: created feed connection for http://www.godaddy.com/Roku/xml/categories.xml
218: Can't parse feed
219: Current Function:
220: 035:
221: 037:
222: 039: 'print category.Title
223: 042:
224: 044:
225: Syntax Error. (runtime error &h02) in .../pkg:/source/categoryFeed.brs(38)
226: Backtrace:
227: Function get_category_names(categories As <uninitialized>) As
228: file/line: /tmp/plugin/KCAAAATPD.../pkg:/source/categoryFeed.brs(38)
229: Function initcategorylist() As
230: file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(112)
231: Function showhomescreen(screen As ) As Integer
232: file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(39)
233: Function main() As
234: file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appMain.brs(20)
235: Local Variables:
236: categories &h0010 bsc:roInvalid, refcnt=1
237: global &h0020 rotINTERFACE:ifGlobal
238: m &h0010 bsc:roAssociativeArray, refcnt=3
239: categorynames &h0010 bsc:roArray, refcnt=1
240: category &h0000 <uninitialized> val:Uninitialized
241: BrightScript Debugger>
Syntax Error. (runtime error &h02) in .../pkg:/source/categoryFeed.brs(38)

038: for each category in categories.kids
Backtrace:
Function get_category_names(categories As <uninitialized>) As
file/line: /tmp/plugin/KCAAAATPD.../pkg:/source/categoryFeed.brs(38)
Function initcategorylist() As
file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(112)
Function showhomescreen(screen As ) As Integer
file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(39)
Function main() As
file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appMain.brs(20)

Local Variables:
categories &h0010 bsc:roInvalid, refcnt=1
global &h0020 rotINTERFACE:ifGlobal
m &h0010 bsc:roAssociativeArray, refcnt=3
categorynames &h0010 bsc:roArray, refcnt=1
category &h0000 <uninitialized> val:Uninitialized
BrightScript Debugger> BrightScript Debugger> BrightScript Debugger>
0 Kudos
5 REPLIES 5
b14d3
Visitor

Re: Creating a New Channel

Could you post the XML? Also, how did you test the XML?
0 Kudos
fischb0ne
Visitor

Re: Creating a New Channel

"b14d3" wrote:
Could you post the XML? Also, how did you test the XML?


Sure! I am doing a practice one so it isn't very big. I used the w3schools validator. Thanks for your help! 🙂

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>

<!-- banner_ad: optional element which displays an at the top level category screen -->
<banner_ad sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png"/>

<category title="Marine Mammals" description="Streaming Video of Marine Mammals" sd_img="http://godaddy.com/Roku/AttitudeSD.jpg" hd_img="http://godaddy.com/Roku/AttitudeHD.jpg">
<categoryLeaf title="Harbor Seal" description="" feed="http://godaddy.com/Roku/xml/themind.xml"/>
</category>
</categories>


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<!-- resultLength indicates the total number of results for this feed -->
<resultLength>2</resultLength>
<!-- endIndix indicates the number of results for this *paged* section of the feed -->
<endIndex>2</endIndex>
<item sdImg="http://godaddy.com/Roku/AttitudeSD.jpg" hdImg="http://godaddy.com/Roku/AttitudeHD.jpg">
<title>Harbor Seal</title>
<contentId>10001</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>mp4</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.godaddy.com.com/Roku/HarborSealVisit.mp4</streamUrl>
</media>
<synopsis>Lets have some fun streaming video to our Roku player from our own channel</synopsis>
<genres>Clip</genres>
<runtime>1260</runtime>
</item>
</feed>
0 Kudos
b14d3
Visitor

Re: Creating a New Channel

I'm not super good at this, but here it goes:

The url, http://www.godaddy.com/Roku/xml/categories.xml just looks like it redirects me to their homepage. Are you sure that URL is right?
0 Kudos
fischb0ne
Visitor

Re: Creating a New Channel

OMG I'm such a dumbass! I had the link pointing to the wrong area! Thanks for your help! 🙂
0 Kudos
b14d3
Visitor

Re: Creating a New Channel

It's definitely a learning process. Glad I was able to help 🙂
0 Kudos