Skip to main content

JS Error

Query JS error list

Method: post

http://${domain}/browser-api/jserror/jsError-list

Request parameters

Example:

{
"datasource": "BRS_JSERR",
"dimensions": [
"fileName"
],
"endTime": "2022-02-15 16:07", //End time
"filters": [
{
"name": "browserApplicationId",
"operator": "IN",
"value": [
13 //Application id
]
},
{
"name": "ignoreError", //Whether to display ignored JS errors, cancel this parameter: display ignored JS errors
"operator": "=",
"value": [
1
]
}
],
"limit": -1,
"metrics": [
"uvTotal",
"jsErrorCount",
"errorPv",
"fileErrorPv",
"jserrorPercent"
],
"render": "list",
"timePeriod": 43200 //Time period
}

Return parameters

FieldTypeDescription
codeNumberInterface return status: 200: Success; 401: No permission; 400: Request parameter error; Others: Failure
msgStringSuccessful return: success
dataObjectReturn list data

Request example

URL:

http://${domain name}/browser-api/jserror/jsError-list

Body:

{"timePeriod":43200,"endTime":"2022-02-15 16:07","datasource":"BRS_JSERR","metrics":["uvTotal","jsErrorCount","errorPv","fileErrorPv","jserrorPercent"],"dimensions":["fileName"],"filters":[{"name":"browserApplicationId","operator":"IN","value":[13]}],"limit":-1,"render":"list"}

Return example

{
"code": 200,
"data": [
{
"errorPv": 1,
"fileErrorPv": 1,
"fileName": "http://127.0.0.1:8080/beta1/index_saas30_beta.html", //js file name
"jsErrorCount": 1, //Number of errors
"jserrorPercent": 100.0, //Error percentage
"uvTotal": 1 //Number of users affected
}
],
"message": "success"
}