Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

Re: How to get json data from a REST API call?

Check file location, Roku cannot get data from it.
Look at code errors:
https://sdkdocs.roku.com/display/sdkdoc/roUrlEvent
Sincerely, Sergey Shoshin, software developer.
0 Kudos
Highlighted
Level 7

Re: How to get json data from a REST API call?

Thanks.

Yes the file location is correct. The file is also there in zip file. But still the same error.

I am testing in below ROKU device using my Eclipse IDE

Model: 3500X - Roku Stick
Software Version: Version 7.0 . build 9044


Let me again specify my steps here:
    Copied the cacert.pem file from the ROKU SDK

    Used locally installed openssl to grab the cacert.crt file using the pem file

    Copied the crt file into the server's chain crt file

    cacert.crt file is copied in the project folder and used as the above mentioned code


Surely, app is not being able to load the crt file. Even when deleting the file from zip before installing it in to the Roku stick, I get the same error.
CAfile: /tmp/plugin/BEAAAA8IJGIU/pkg:/certs/cacert.crt


I am running out of ideas, is there any other way to check how it should work.
0 Kudos
Level 8

Re: How to get json data from a REST API call?

What certificate authority is the server's certificate signed with?

Does the server need to verify the Roku's client certificate?
https://github.com/belltown/
0 Kudos
Highlighted
Level 7

Re: How to get json data from a REST API call?

Server uses GoDaddy Standard UCC SSL.
0 Kudos
Highlighted
Level 8

Re: How to get json data from a REST API call?

"ov2015" wrote:
Server uses GoDaddy Standard UCC SSL.

Did they give you an intermediate certificate to install on your server? If so, try copying that to your Roku package and using that in the call to SetCertificatesFile().
https://github.com/belltown/
0 Kudos
Highlighted
Level 7

Re: How to get json data from a REST API call?

"belltown" wrote:
"ov2015" wrote:
Server uses GoDaddy Standard UCC SSL.

Did they give you an intermediate certificate to install on your server? If so, try copying that to your Roku package and using that in the call to SetCertificatesFile().


I downloaded the GoDaddy Certificate Bundles - G2 from here: https://certs.godaddy.com/repository/.
Used it in the SetCertificatesFile call and I am receiving 200 status. Smiley Very Happy
Thanks for your help. Much Appreciated.
0 Kudos