logClientErrors
post
/ccadmin/v1/logging/logClientErrors
Log Client Errors. Creates an error log entry for client errors. Expects the JSON to contain an clientSideErrors array.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : logClientErrors_request
{
"clientSideErrors":[
{
"clientErrorCode":"15006",
"osVersion":"Win32",
"line":"",
"browserVersion":"Chrome 33.0.1750.154",
"time":"2014-03-21T11:33:18.170Z",
"message":"Error: Script error\nhttp://requirejs.org/docs/errors.html#scripterror",
"locale":"en-US",
"url":"http://localhost:9080/random"
}
]
}
- clientSideErrors
-
Type:
arrayclientSideErrorsRequired:trueAdditional Properties Allowed:The array of client side errors to print to error log.
Nested Schema : clientSideErrors
Nested Schema : items
Type:
object- browserVersion
-
Type:
stringBrowser version for client side error. - clientErrorCode
-
Type:
stringClient error code for client side error. - line
-
Type:
stringLine for client side error. - locale
-
Type:
stringLocale for client side error. - message
-
Type:
stringMessage for client side error. - osVersion
-
Type:
stringOS version for client side error. - time
-
Type:
stringTime for client side error. - url
-
Type:
stringURL for client side error.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : logClientErrors_response
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{"clientSideErrors": [{
"clientErrorCode": "15006",
"osVersion": "Win32",
"line": "",
"browserVersion": "Chrome 33.0.1750.154",
"time": "2014-03-21T11:33:18.170Z",
"message": "Error: Script error\nhttp://requirejs.org/docs/errors.html#scripterror",
"locale": "en-US",
"url": "http://localhost:9080/admin/#/random"
}]}