Discovery instance is not working with Mid server and credentials