@@ -93,21 +93,44 @@ call.feature(Features.CallSurvey).submitSurvey({
93
93
94
94
95
95
96
- <!-- ## Find different types of errors
96
+ ## Find different types of errors
97
+
98
+
97
99
98
100
### Failures while submitting survey:
99
101
100
- API will return the error messages when data validation failed or unable to submit the survey.
101
- - At least one survey rating is required.
102
- - In default scale X should be 1 to 5. - where X is either of
103
- - overallRating.score
104
- - audioRating.score
105
- - videoRating.score
106
- - ScreenshareRating.score
107
- - ${propertyName}: ${rating.score} should be between ${rating.scale?.lowerBound} and ${rating.scale?.upperBound}. ;
108
- - ${propertyName}: ${rating.scale?.lowScoreThreshold} should be between ${rating.scale?.lowerBound} and ${rating.scale?.upperBound}. ;
109
- - ${propertyName} lowerBound: ${rating.scale?.lowerBound} and upperBound: ${rating.scale?.upperBound} should be between 0 and 100. ;
110
- - event discarded [ACS failed to submit survey, due to network or other error] -->
102
+ The API will return the following error messages if data validation fails or the survey can't be submitted.
103
+
104
+ - At least one survey rating is required.
105
+
106
+ - In default scale X should be 1 to 5. - where X is either of:
107
+ - overallRating.score
108
+ - audioRating.score
109
+ - videoRating.score
110
+ - ScreenshareRating.score
111
+
112
+ - \{ propertyName\} : \{ rating.score\} should be between \{ rating.scale?.lowerBound\} and \{ rating.scale?.upperBound\} .
113
+
114
+ - \{ propertyName\} : \{ rating.scale?.lowScoreThreshold\} should be between \{ rating.scale?.lowerBound\} and \{ rating.scale?.upperBound\} .
115
+
116
+ - \{ propertyName\} lowerBound: \{ rating.scale?.lowerBound\} and upperBound: \{ rating.scale?.upperBound\} should be between 0 and 100.
117
+
118
+ - Please try again [ ACS failed to submit survey, due to network or other error] .
119
+
120
+ ### We will return any error codes with a message.
121
+
122
+ - Error code 400 (bad request) for all the error messages except one.
123
+
124
+ ```
125
+ { message: validationErrorMessage, code: 400 }
126
+ ```
127
+
128
+ - One 408 (timeout) when event discarded:
129
+
130
+ ```
131
+ { message: "Please try again.", code: 408 }
132
+ ```
133
+
111
134
112
135
## All possible values
113
136
0 commit comments