News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Unhelpful error response in multi-part response.
Tags: error
Nov 7, 2016 at 12:01pm   •   1 replies  •  0 likes
development-user

Is there a particular reason why error response bodies in a multi-part response don't actually include any details?


Take the following response text for example. There's no identifying extension id or url attached to the error response, which would be highly useful for logging and debugging purposes (yes, that the extension 404s is noted in the response "manifest" above the individual responses, but the only way to correlate the error items there with any error messages below is to rely on order.)


At the very least, it seems reasonable to replace [extensionId] in the error message with the actual extensionId. Even better to include the url.

Content-Type: application/json    {    "response" : [ {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/1046387016/presence",      "status" : 200,      "responseDescription" : "OK"    }, {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/723888016/presence",      "status" : 200,      "responseDescription" : "OK"    }, {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967151016/presence",      "status" : 200,      "responseDescription" : "OK"    }, {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/1008566016/presence",      "status" : 200,      "responseDescription" : "OK"    }, {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/999376016/presence",      "status" : 404,      "responseDescription" : "Not Found"    }, {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967163016/presence",      "status" : 200,      "responseDescription" : "OK"    }, {      "href" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967193016/presence",      "status" : 200,      "responseDescription" : "OK"    } ]  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/1046387016/presence",    "extension" : {      "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/1046387016",      "id" : 1046387016,      "extensionNumber" : "2053"    },    "presenceStatus" : "Busy",    "telephonyStatus" : "CallConnected",    "userStatus" : "Available",    "dndStatus" : "TakeAllCalls"  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/723888016/presence",    "extension" : {      "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/723888016",      "id" : 723888016,      "extensionNumber" : "2109"    },    "presenceStatus" : "Offline",    "telephonyStatus" : "NoCall",    "userStatus" : "Offline",    "dndStatus" : "DoNotAcceptDepartmentCalls"  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967151016/presence",    "extension" : {      "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967151016",      "id" : 967151016,      "extensionNumber" : "2205"    },    "presenceStatus" : "Busy",    "telephonyStatus" : "CallConnected",    "userStatus" : "Available",    "dndStatus" : "TakeAllCalls"  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/1008566016/presence",    "extension" : {      "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/1008566016",      "id" : 1008566016,      "extensionNumber" : "2345"    },    "presenceStatus" : "Offline",    "telephonyStatus" : "NoCall",    "userStatus" : "Offline",    "dndStatus" : "DoNotAcceptDepartmentCalls"  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "errorCode" : "CMN-102",    "message" : "Resource for parameter [extensionId] is not found",    "errors" : [ {      "errorCode" : "CMN-102",      "message" : "Resource for parameter [extensionId] is not found",      "parameterName" : "extensionId"    } ],    "parameterName" : "extensionId"  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967163016/presence",    "extension" : {      "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967163016",      "id" : 967163016,      "extensionNumber" : "2123"    },    "presenceStatus" : "Busy",    "telephonyStatus" : "NoCall",    "userStatus" : "Busy",    "dndStatus" : "DoNotAcceptAnyCalls"  }  --Boundary_15030_891229182_1478546303338  Content-Type: application/json    {    "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967193016/presence",    "extension" : {      "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXXX/extension/967193016",      "id" : 967193016,      "extensionNumber" : "2108"    },    "presenceStatus" : "Offline",    "telephonyStatus" : "NoCall",    "userStatus" : "Offline",    "dndStatus" : "DoNotAcceptDepartmentCalls"  }  --Boundary_15030_891229182_1478546303338--
1 Answer
answered on Nov 7, 2016 at 2:00pm  
Thanks for pointing this out. I will submit the enhancement request to improve error response in this case.

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us