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: 
dreamer2057
Channel Surfer

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
ov2015
Visitor

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
belltown
Roku Guru

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?
0 Kudos
ov2015
Visitor

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

Server uses GoDaddy Standard UCC SSL.
0 Kudos
belltown
Roku Guru

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().
0 Kudos
ov2015
Visitor

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. 😄
Thanks for your help. Much Appreciated.
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.