You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Why this fifo? See https://jhutar.blogspot.com/2024/12/bash-while-read-line-without-subshell.html
@@ -72,6 +75,12 @@ while IFS=$'\n' read -r line; do
72
75
count="${numbers[0]}"
73
76
(( error_502+=count ))
74
77
;;
78
+
*"401 Client Error: Unauthorized for url: "*)
79
+
# shellcheck disable=SC2206
80
+
numbers=( ${line//[!0-9]/ } )
81
+
count="${numbers[0]}"
82
+
(( error_401+=count ))
83
+
;;
75
84
*"Remote end closed connection without response"*)
76
85
# shellcheck disable=SC2206
77
86
numbers=( ${line//[!0-9]/ } )
@@ -91,5 +100,5 @@ done < "$TMPFIFODIR/mypipe"
91
100
show_errors
92
101
93
102
echo -e "\nIn CSV form:\n"
94
-
echo"Scenario,Log,504 Server Error: Gateway Time-out for url: ...,503 Server Error: Service Unavailable for url: ...,502 Server Error: Bad Gateway for url: ...,Remote end closed connection without response,Not recognized error"
103
+
echo"Scenario,Log,504 Server Error: Gateway Time-out for url: ...,503 Server Error: Service Unavailable for url: ...,502 Server Error: Bad Gateway for url: ...,401 Client Error: Unauthorized for url: ...,Remote end closed connection without response,Not recognized error"
0 commit comments