Connection between Mid server and host machine - Debug modeIssue Trying to test in debug mode with Automatic MID Server selection in Discovery pattern.ReleaseRome Patch 2 Hot Fix 2CausePlease make sure you select proper Mid server with the host machine IP address in Debug identification section. Error- Test failed: Custom operation AVI LB rest query failed to execute script due to Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: No credentials found for AVI REST Query, tried to find credentials with alias avi_lb (script_include:AVIApiUtil; line 22). Check the discovery logs for more details. Resolution Basic authentication credentials created does not match with the automatic mid server requested. So select specified MID server and connect. Test the discovery pattern steps which now results in Test successful You can Disable the Automatic MID Server selection feature if you want to decrease network traffic. Check this Document