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

Receiving an "errorCode":"ERR_DIRECT_INVOKE" when running demo1 #6

Open
dimascrocco opened this issue Oct 9, 2023 · 1 comment
Open

Comments

@dimascrocco
Copy link

Steps to reproduce:

  • just follow the steps from the repository/youtube video

Environment:

S.O

  • Windows 11
  • Ubuntu 22.04

dapr

  • CLI version: 1.11.0
  • Runtime version: 1.11.4

python

  • 2.x or 3.x

Error

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

  • the URL http://localhost:8000 works normally
  • there is no error when running dapr run --app-id api --app-port 8000 --dapr-http-port 3500 python main.py

Aditional comments

this is a veryyyyyyyy frustating issue since the associated video is amazing... plz help!

@dimascrocco
Copy link
Author

holy beans... after trying the quick start examples from the documentation I've found the solution...

the current code does not includes the expected URL as bellow:

http://localhost:3500/v1.0/invoke/api/method
http://localhost:3500/v1.0/invoke/api/method/hello?name=foobar

anyway, it was a nice journey into dapr first steps...
hope u can include additional info about this for the poor souls that reach your examples! loL

best regards

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

No branches or pull requests

1 participant