Good afternoon, I am currently developing an application for Roku and it is already working.
I just installed SSL certificates on the server, and is working well.
I Change the URL of my site in the script of the roku application from http to https, but the roku application remains loading.
I write in all files for the roku app this line
request.SetCertificatesFile ("common:/root/www_mysite_com.csr")
after this
request = CreateObject("roUrlTransfer")
and this is the error I have
------ Compiling dev 'myapp' ------
------ Running dev 'myapp' main ------
Url comprueba_usuario = https://www.mysite.com/RokuDev/comprueba_user.php?user
=test1&pass=test2&idu=6325AFxxxxx&d=Roku%203
BRIGHTSCRIPT: ERROR: ParseJSON: Data is empty: pkg:/source/wallopClient.brs(286)
Url = https://www.mysite.com/RokuDev/status_user.php?status=ok&c=Menu%20Princi
pal&t=Secci%C3%B3n&token=de9dc98a83a38xxxxxx4d
BRIGHTSCRIPT: ERROR: ParseJSON: Data is empty: pkg:/source/wallopClient.brs(139)
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.
Current Function:
010:
011: usuario = getStrValFromReg("usuario", "datosApp")
012: pass = getStrValFromReg("contrasenia", "datosApp")
013:
014: todobien = comprueba_usuario(usuario, pass)
015:
016: enviaStatus("ok","Menu Principal","Secci n")
017:
018:* if todobien.error = "si" then
019: showSettingsScreen()
020: end if
021:
022: sdposter = "pkg:/images/mm_icon_focus_sd.png"
Syntax Error. (runtime error &h02) in pkg:/source/MenuPrincipal.brs(18)
018: if todobien.error = "si" then
Backtrace:
#0 Function main() As Void
file/line: pkg:/source/MenuPrincipal.brs(18)
Local Variables:
global rotINTERFACE:ifGlobal
m roAssociativeArray refcnt=2 count:0
poster bsc:roPosterScreen refcnt=1
usuario roString (2.1 was String) refcnt=1 val:"test1"
pass roString (2.1 was String) refcnt=1 val:"test2"
todobien roArray refcnt=1 count:0
sdposter <uninitialized>
ad <uninitialized>
mainmenudata <uninitialized>
BrightScript Debugger>