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: 
deepakkumar
Visitor

Get Error response Object

{
  "source": {
    "system": "CMS",
    "status": 400,
    "message": "Application is not valid."
  },
  "mw": {
    "status": 400,
    "message": "External: CMS_INTEGRATION: Internal: Application is not valid.",
    "cb": false
  },
  "correlationId": "673399e7-388c-4637-a4a2-c8a9336ed4b8"
}

The server that our roku app interacts with returns a error object when there is some error with the request or with the server. We want to be able to parse this and use it in our app for logging and UI purposes. Now when we try to get the object by roUrlEvent -> msg.getString() or any other  functions on the roUrlEvent we dont get this object, can anyone help understand this please and how can we achieve this ? 
0 Kudos
2 REPLIES 2
joetesta
Roku Guru

Re: Get Error response Object

where's your roUrlEvent call? may want to share that.

Are you getting anything in msg.GetResponseCode() or msg.GetFailureReason() ?
aspiring
0 Kudos
EnTerr
Roku Guru

Re: Get Error response Object

"talk" to your Content Management System, clearly not a Roku issue (cue "External: CMS_INTEGRATION: Internal: Application is not valid"). I doubt any need to check http status, since server already replied with details in JSON. More insight likely can be gained by looking at the CMS logs
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.