testRequest = CreateObject("roUrlTransfer")
testRequest.SetUrl("http://blog.roku.com/developer")
BrightScript Debugger>
Current Function:
019: testRequest = CreateObject("roUrlTransfer")
020:* testRequest.SetUrl("http://blog.roku.com/developer")
021:
'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in ...AAAAy0HwSV/pkg:/source/categories.brs(20)
020: testRequest.SetUrl("http://blog.roku.com/developer")
Backtrace:
#1 Function showcategories() As Void
file/line: ...AAAAy0HwSV/pkg:/source/categories.brs(20)
#0 Function init() As Void
file/line: ...AAAAy0HwSV/pkg:/source/categories.brs(9)
Local Variables:
global rotINTERFACE:ifGlobal
m roAssociativeArray refcnt=4 count:4
testrequest Invalid
BrightScript Debugger> a = [] : for ii=1 to 10000 : a.push(CreateObject("roUrlTransfer")) : next
^C
BREAK (runtime error &hf8) in $LIVECOMPILE(73)
BrightScript Debugger> ? ii, a.count()
3570 3569
BrightScript Debugger> ? a[3500]
<Component: roUrlTransfer>
BrightScript Debugger> a[3500].SetUrl("http://blog.roku.com/developer")
BrightScript Debugger> bscs
roArray: 14
roAssociativeArray: 106
roByteArray: 1
roGlobal: 1
roImageCanvas: 1
roInt: 2
roList: 8
roMessagePort: 8
roString: 187
roUrlEvent: 8
roUrlTransfer: 3579
Total # components: 3915
<script type="text/brightscript" uri="pkg:/source/categories.brs" />
"EnTerr" wrote:
Oh, that's the new XML carp? <nose wrinkle="on"/>
There is a beadroll of unsupported fn here http://sdkdocs.roku.com/display/sdkdoc/ ... pt+Support
No reason is given, my guess is thread-unsafe
You have filereadInternet on one line and readInternet on the other.
Hello,
I am trying to integrate external API into my channel for that i have created new brs file and i got the below error.
request = createObject(“roUrlTransfer”)
request.setUrl("https://dummy.restapiexample.com/api/v1/employees")
html = request.GetToString()
‘Dot’ Operator attempted with invalid BrightScript Component or interface reference at setUrl component.Please provide the correct process.
@NicholasStokes, if you print "request" you'll probably see that it's invalid. You can't use roUrlTransfer in the render thread I'm going to assume is what you're trying to do. You have to set up a task or use it in the main thread.