Adding new SonarQube Server Configuration is failing with exception: Unable to parse server infos from

I am facing one issue while integrating SonarQube with intelliJ. I am getting the attached error. If you have any idea regarding this error, please help me

Hi,

It looks like the URL you configured for the server is not correct, as it’s returning something unexpected.
Could you open it in the browser and see if it works? Make sure you add the full endpoint: for example, sometimes instead of being https://mysonarqube.org, it is https://mysonarqube.org/mycompany.

I had spaces at the end of the url. I deleted them and it worked for me.