RestAPI returns webpage instead of JSON

Hi All,

I start a rest API using Start-UDRestApi -Port 8000 -Endpoints $Endpoints where endpoints is an array of New-UDEndpoint objects.

When calling the endpoint using Invoke-RestMethod I get a web page back rather than the restapi response. Similarly if I navigate to the webpage it shows the a diamond logo that flips over constantly.

I had the same code running on a different machine no problem so I assume something else is running. One thing I did try to do on this machine was run the PowershellUniversal1.4.3 msi file but this seemed to do nothing. I uninstalled it through the windows remove program.

Running Get-UDRestApi returns nothing and neither does Get-UDDashboard

Can anyone help?

Thanks

Anthony