errorCode":"ERR_DIRECT_INVOKE","message":"failed getting app id either from the URL path or the header dapr-app-id


Question: Trying out Dapr on Docker-Compose produces an error "errorCode":"ERR_DIRECT_INVOKE","message":"failed getting app id either from the URL path or the header dapr-app-id".

Has anyone found the solution to this error?


Login to See the Rest of the Answer

Answer: In case you think Dapr is like an HTTP Proxy that is not correct, Dapr is used as Distributed Service Manager, that is, it is configured to know where the API/Services with Get,Put and Post HTTP verbs defined on those endpoints.

When the application tries to access one Endpoint e.g. /api/v1/getOrders/1 the User Interface Application communictes with Dapr, then Dapr forwards that request the API or Service via GRPC or HTTP Protocal. 

You see, Dapr does not expose Services Endpoing via Browser, maybe it might be, at this time not to my knowledge.
Read more about Dapr
https://learn.microsoft.com/en-us/dotnet/architecture/dapr-for-net-developers/getting-started

https://dapr.io/

 


Docker-Compose
published
v.0.01




For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]