Skip to content

Commit ca3d95d

Browse files
authored
Explicitly match null status (#3722)
- This can be generated when a request fails with a catch(), though it can occur if the status is uninitialised or explicitly set to null.
1 parent d39b56b commit ca3d95d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/streaming/metrics/utils/DVBErrorsTranslator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function DVBErrorsTranslator(config) {
9090

9191
function handleHttpMetric(vo) {
9292
if ((vo.responsecode === 0) || // connection failure - unknown
93+
(vo.responsecode == null) || // Generated on .catch() and when uninitialised
9394
(vo.responsecode >= 400) || // HTTP error status code
9495
(vo.responsecode < 100) || // unknown status codes
9596
(vo.responsecode >= 600)) { // unknown status codes

0 commit comments

Comments
 (0)