We are getting the error URL response for '(url)' failed "47 Number of redirects hit maximum amount" when we configure a url on url_response probe.
url_response probe configuration:
When following redirects, libcurl hit the maximum amount
url_response parameters need to be updated as described in the resolution
1) 47 is not a threshold but a CURL standard error code i.e "CURLE_TOO_MANY_REDIRECTS(47)". Kindly refer CURL documentation on error codes.
https://curl.haxx.se/libcurl/c/libcurl-errors.html
CURLE_TOO_MANY_REDIRECTS (47)
Too many redirects. When following redirects, libcurl hit the maximum amount. Set your limit with CURLOPT_MAXREDIRS.
Redirects are configured through these parameters/keys in the url_response configuration.
enable_redirect_retry
redirect_retry_count
redirect_retry_delay
or
2) In the url_response probe, set enable_redirect_retry = yes
The alarm message changed to 401, "The requested resource requires user authentication."
For this website, this is an expected behavior as it redirects to login.
If required, this error can be avoided by using the e2e_appmon_dev probe to record a transaction, e.g., to access the website and login with the username and password.
Details on the keys: