Do you know guys why I'm getting that error? I've doing my research but I didn't found anything that solves my problem and the debugger it's not clear.Doesn't matter what URL I type, I always get error except if I use the next in main.brs:
url = "https://community.roku.com/"
x = CreateObject("roUrlTransfer")
x.SetUrl(url)
MainScene.xml
<?xml version="1.0" encoding="utf-8" ?>
<component name="MainScreen" extends="Scene">
<script type="text/brightscript" uri="MainScene.brs" />
<script type="text/brightscript" uri="UILogic/StackLogic.brs" />
<script type="text/brightscript" uri="UILogic/RunTaskLogic.brs" />
<script type="text/brightscript" uri="UILogic/ShowLoginForm.brs" />
<script type="text/brightscript" uri="UILogic/UrlTransfer.brs" />
<children>
<Overhang
id="overhang"
title="Wubbix"
showOptions="false"
showClock="true"
logoUri="pkg:/images/logo64.png"
translation="[0,0]"
opacity="0.66"
color="0x101010FF"
/>
<Label
id="myLabel"
width="1280"
height="720"
translation="[0,0]"
horizAlign="center"
vertAlign="center"
/>
</children>
</component>
MainScene.brs
sub init()
tittleSize = 50
textColor = "0x94001BFF"
m.myLabel = m.top.findNode("myLabel")
m.myLabel.font.size=tittleSize
m.myLabel.color=textColor
m.myLabel.text="hola"
m.myLabel_Size= m.myLabel.boundingRect()
m.MainScreen = CreateObject("roSGNode","MainScreen")
MainScreen_Size = m.MainScreen.boundingRect()
GetAsync("https://community.roku.com/")
InitScreenStack()
ShowLoginForm()
RunContentTask()
end sub
Output:
IMG:
You can’t create these objects in the render thread. You can only make them in main or Tasks. So that error is that your “request” object is invalid as “CreateObject” failed.
https://developer.roku.com/en-ca/docs/references/scenegraph/control-nodes/task.md
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!