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: 
waraka42
Visitor

RoKu Telnet Run Time Error

I succesfully published my private channel.
When I open my channel in Roku, it keeps "Loading" forever.
I did telnet port 8085; I got following Error
Error is related to categoryFeed.brs file line 38 which I did not edit at all. Please Help.
error:
new-host:~ User$ telnet 192.168.1.6 8085
Trying 192.168.1.6...
Connected to np-12c27s027480.home.
Escape character is '^]'.

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
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/FGAAAAEDC.../pkg:/source/categoryFeed.brs(38)
Function initcategorylist() As
file/line: /tmp/plugin/FGAAAAEDCBBw/pkg:/source/appHomeScreen.brs(112)
Function showhomescreen(screen As ) As Integer
file/line: /tmp/plugin/FGAAAAEDCBBw/pkg:/source/appHomeScreen.brs(39)
Function main() As
file/line: /tmp/plugin/FGAAAAEDCBBw/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> ------ Running ------
created feed connection for http://www.dramia.com/rokudev/examples/ ... gories.xml
url: http://www.dramia.com/rokudev/examples/ ... gories.xml
Took: 165ms
Can't parse feed
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

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
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/NGAAAAVR7.../pkg:/source/categoryFeed.brs(38)
Function initcategorylist() As
file/line: /tmp/plugin/NGAAAAVR7EU5/pkg:/source/appHomeScreen.brs(112)
Function showhomescreen(screen As ) As Integer
file/line: /tmp/plugin/NGAAAAVR7EU5/pkg:/source/appHomeScreen.brs(39)
Function main() As
file/line: /tmp/plugin/NGAAAAVR7EU5/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> ------ Running ------
created feed connection for http://www.dramia.com/rokudev/examples/ ... gories.xml
url: http://www.dramia.com/rokudev/examples/ ... gories.xml
Took: 145ms
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
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/NGAAAAVR7.../pkg:/source/categoryFeed.brs(38)
Function initcategorylist() As
file/line: /tmp/plugin/NGAAAAVR7EU5/pkg:/source/appHomeScreen.brs(112)
Function showhomescreen(screen As ) As Integer
file/line: /tmp/plugin/NGAAAAVR7EU5/pkg:/source/appHomeScreen.brs(39)
Function main() As
file/line: /tmp/plugin/NGAAAAVR7EU5/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>
0 Kudos
2 REPLIES 2
jeffrok
Roku Guru

Re: RoKu Telnet Run Time Error

Might wanna post this in the Developer forum instead of General.
Yeah, I got some Rokus.
https://youtu.be/d1CSEeqWl10
0 Kudos
renojim
Community Streaming Expert

Re: RoKu Telnet Run Time Error

Your XML is bad. There's a double quote missing. You can use this site to validate it:
http://www.w3schools.com/xml/xml_validator.asp

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.