-
Notifications
You must be signed in to change notification settings - Fork 128
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
Can not find service @ example "invoke-simple" #146
Comments
it works for me on my machine. did you run this sample inside docker container? which version of dapr runtime are you using? |
Thanks for testing @youngbupark Thats my current setup:
|
Please delete all packages first and install only non dev pkgs :) *-dev suffix pkgs are the development build :) If you checkout master branch, then all examples will use dev pkgs.
Please checkout the version 0.8.0a0 should work with 0.11.3 Dapr but try with the latest 1.0.0-rc.1 Dapr as well. dapr uninstall --all
curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash -s 1.0.0-rc.2
dapr init --runtime-version=1.0.0-rc.1 |
Thanks for your reply. with dapr 1.0.1-rc.1 I'm getting the following error:
and stopped working printing all the possible flags. Adding My python libs (pip3 freeze):
Next, I will test it with dapr 0.11.3 |
With 0.11.3 the
I still assume that this might be related to the proxy configuration, as is still receives it from |
Seems like you install older version of dapr runtime. there is breaking change between 0.11.3 and 1.0.0-rc.1.
Did you whitelist 127.0.0.1 or localhost in windows ? by default windows resolves localhost to ipv6 localhost address, not ipv4. please ensure that your firewall whitelisted 127.0.0.1. |
Proxy has a pass-through for 127.0.0.* and localhost. I have found out, that the env-variable http_proxy is used (if I change it, the related address and port is changed in the error message as well). Is there any kind of http(s) communication used by grpc for binding methods (e.g. discovery)? |
I do not know where http_proxy environment variable is used in Dapr.
I am not sure that I understand your question correctly. python-sdk doesn't use any http. When you try this hello world example, did you see the same issue? |
Good hint, I tried out the hello world example and it doesn't work as well:
I double checked my proxy settings in docker as well on my proxy on my system. Both pass-through localhost & 127.0.0.1 and as I said, pub-sub example is working fine. |
Some update: |
So we've had some reports that certain anti-virus/security software may block mdns requests (which is what dapr uses for service discovery when running locally). If you are still having this issue, can you let us know what OS version you are running on, and if you have any antivirus/security software running? |
I'm getting this issue running the hello world example, but it works if I disable the VPN client (AppGate SDP). I'm running on Windows 10 (20H2) with McAfee antivirus (disabling that made no difference). The VPN is required for remote working, so it's less than ideal. |
I have security software running on Windows and Linux so this could causing the issues with service discovery and rpcs. I was working using a VPN and without, which made no difference (but I was using dapr on localhost only). On Linux, Service discovery and pub-sub was working but rpcs haven't been executed (timeout). I have to check your suggestions and to double check my setup. I'll let you know if I have some new information. |
Closing this, since there is nothing python-sdk specific to be done. We do have a runtime issue open for this dapr/dapr#3256. |
Hello,
I'm currently trying out dapr for python. I started with the pub-sub simple example and its working fine.
Now, I got stuck with the invoke-simple example.
I start the apps with the following commands and order:
Afterwards, invoke-caller.py gives me the following error:
For me, it looks a little bit strange why it receives an error from my proxy (127.0.0.1:3128). Could it be some proxy issues? Do I need to add something to "no-proxy" for dapr? (Currently: no_proxy: .docker.internal,localhost,127.0.0.1)
Could you help me to get this example running?
The text was updated successfully, but these errors were encountered: