Roku Developer Program

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

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
joetesta
Level 10

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
Level 8

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