KBEC-00402 - Resolve curl: (47) Maximum (50) redirects followed issue

Article ID:360032824192
1 minute readKnowledge base
On this page

Problem

You encounter this error message when running the curl command

curl -u admin:changeme -L -k -X GET --header "Accept: application/json" https:///rest/v1.0/projects
The output was: curl: (47) Maximum (50) redirects followed

Solution

This is because the WebServer Loadbalancer VIP was configured to forward the request only to http port 80 of EF webserver. Then in /apache/conf, the EF webserver redirects all requests on port 80 to port 443 of the Loadbalancer.

This goes in a loop and fails after 50 retries.

You can resolve this issue by configuring the WebServer Loadbalancer VIP to forward the request to https port 443 of the EF webservers that it is load balancing.