Reputation: 1405
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.
Upvotes: 0
Views: 202
Reputation: 9175
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>
Upvotes: 1
Reputation: 11470
Port 19080 is used by the Service Fabric explorer. You should choose a different port to run your own service on.
Upvotes: 1