Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When invoking new order in hello-world: "errorCode": "ERR_DIRECT_INVOKE", "message": "invoke API is not ready" #388

Closed
gary-desroches opened this issue Feb 18, 2021 · 5 comments
Labels
question Further information is requested

Comments

@gary-desroches
Copy link

Expected Behavior

== APP == Got a new order! Order ID: 42
== APP == Successfully persisted state.

Actual Behavior

"errorCode": "ERR_DIRECT_INVOKE",
"message": "invoke API is not ready"

Steps to Reproduce the Problem

Follow the instructions on Windows 10 to install and init dapper 1.0.0 in Docker, then cloning and running the hello-world app on your local machine. Get to the point where you POST a new order with the following URL and body data.

http://localhost:3500/v1.0/invoke/nodeapp/method/neworder

{
  "data": {
    "orderId": "42"
  } 
}
@seanfitzg
Copy link

seanfitzg commented Mar 19, 2021

I'm getting a similar error on windows 10. I've created a .net core demo application at https://github.com/seanfitzg/HomeCookingApi.

Started with:
dapr run --app-id recipe-app --app-port 80 --dapr-http-port 3500 dotnet run

Running:
curl http://localhost:3500/v1.0/invoke/recipe-app/method/recipes

Returns:
{"errorCode":"ERR_DIRECT_INVOKE","message":"invoke API is not ready"}

I wonder if there is an issue with .net core invocation on Win10. I don't think I'm doing anything wrong.

@sjf10050
Copy link

npm install express --save
the app.js require module 'express'

@wcs1only
Copy link
Contributor

wcs1only commented Jun 8, 2021

So, we regularly validate our quickstarts in Windows, and I am able to run this one without issue on a Windows 10 machine. Dapr relies on mDNS for service discovery while running locally. We have received reports of users having trouble when certain security/firewall/VPN software blocks access to mDNS. Are you running any firewalls/VPN software on your machine?

Depending on the product, you may be able to re-enable mDNS for localhost connections to allow service discovery to work correctly locally.

@seanfitzg
Copy link

seanfitzg commented Jun 10, 2021

I'm getting a similar error on windows 10. I've created a .net core demo application at https://github.com/seanfitzg/HomeCookingApi.

Started with:
dapr run --app-id recipe-app --app-port 80 --dapr-http-port 3500 dotnet run

Running:
curl http://localhost:3500/v1.0/invoke/recipe-app/method/recipes

Returns:
{"errorCode":"ERR_DIRECT_INVOKE","message":"invoke API is not ready"}

I wonder if there is an issue with .net core invocation on Win10. I don't think I'm doing anything wrong.

fyi, this response helped to sort out my issue: dapr/dapr#2954 (comment)

@wcs1only
Copy link
Contributor

Ah, glad you were able to sort this out. We've also made some changes to the way dapr run works in v1.2 that should make it a little more obvious that daprd has failed with an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants