Trying to add the PIWebapi service to my Blazor application in VS 2022. Keep getting: An error occurred while attempting to find the services at .....

An error occurred while attempting to find services at 'https://12.202.123.22/PIWebapi'. The data at the root level is invalid. Line 1, position 1.  

details:

Metadata contains a reference that cannot be resolved: 'https://12.202.123.22/PIWebapi'.

 

paste the url in the browser and it works.