<h2>Mid Server Error: Illegal character in scheme name at index 0 in the agent logs</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-position: inside;"><li> Post-installation of Mid Server, it shows below error in the MID Server agent logs:</li></ul> <pre style="padding-left: 80px;"><span style="color: #ff0000; background-color: #ffffff;">[AMBClientProvider] ERROR com.snc.glide.amb.AMBClient - Illegal character in scheme name at index 0: <a style="color: #ff0000; background-color: #ffffff;" href="https://%3Cinstance-name%3E.service-now/" rel="nofollow">https://<instance-name>.service-now</a></span><br /><span style="color: #ff0000; background-color: #ffffff;">java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: <a style="color: #ff0000; background-color: #ffffff;" href="https://%3Cinstance-name%3E.service-now/" rel="nofollow">https://<instance-name>.service-now</a></span></pre></section></div><div ><h3 >Release</h3><section><ul style="list-style-position: inside;"><li>The issue can occur in any release.</li></ul></section></div><div ><h3 >Cause</h3><section><ul style="list-style-position: inside;"><li>An extra space character in the instance server URL parameter in the mid server config.xml file.<br /></li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-position: inside;"><li>In order to resolve this issue, follow the below steps.<br /><br /> <ul style="list-style-position: inside;"><li>Connect to the Mid Server Host and Navigate to < Mid-Installation Directory>/agent/config.xml file.</li><li>Open the file and Locate the following parameter: <br /> <parameter name="url" value=" <a href="https://<instance-name>.service-now/" rel="nofollow">https://<instance-name>.service-now</a>></li><li>Check if there is any extra space added while adding the URL and remove the same.</li><li>Save the file and restart the Mid Server.<br /></li></ul> </li></ul></section></div></article></div>