I am using a new Azure Service Fabric project. The project contains 2 statefull services as shown in the below image:
When I run the application, the explorer is shown successfully as below:
But when I try to hit my API, http://localhost:19080/api/values, I get the below Invalid argument
error. It does not hit the controller:
Kindly advise how to solve this error.
As LoekD mentioned, port 19080 is used by the Service Fabric explorer. You can find the actual port of your application in ServiceManifest.xml of API project. There should be the section Resources with Endpoints like:
<Resources>
<Endpoints>
<Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="8315" />
</Endpoints>
</Resources>