question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not find service @ example "invoke-simple"

See original GitHub issue

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:

  1. dapr run --app-id invoke-receiver --app-protocol grpc --app-port 50051 python invoke-receiver.py
  2. dapr run --app-id invoke-caller --app-protocol grpc python invoke-caller.py

Afterwards, invoke-caller.py gives me the following error:

[94;1m== APP == grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
[0m
[94;1m== APP ==        status = StatusCode.UNKNOWN
[0m
[94;1m== APP ==        details = "couldn't find service: invoke-receiver"
[0m
[94;1m== APP ==        debug_error_string = "{"created":"@1606122049.322000000","description":"Error received from peer ipv4:127.0.0.1:3128","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"couldn't find service: invoke-receiver","grpc_status":2}"

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JochenKienzlecommented, Apr 13, 2021

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.

1reaction
JochenKienzlecommented, Dec 2, 2020

Good hint, I tried out the hello world example and it doesn’t work as well:

dapr run --app-id nodeapp --app-port 3000 --dapr-http-port 3500 node app.js
Starting Dapr with id nodeapp. HTTP Port: 3500. gRPC Port: 14790
[...]
Updating metadata for app command: node app.js
You're up and running! Both Dapr and your app logs will appear here.
dapr invoke --app-id nodeapp --method neworder --payload "{\"data\": { \"orderId\": \"42\" } }"
{"errorCode":"ERR_DIRECT_INVOKE","message":"couldn't find service: nodeapp"}
App invoked successfully

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not find service @ example "invoke-simple" - Bountysource
Hello,. I'm currently trying out dapr for python. I started with the pub-sub simple example and its working fine.
Read more >
Cannot invoke simple Lambda from API Gateway because of ...
The issue you are seeing comes from setting an integration role as well as the Lambda permission. So if you remove the execution...
Read more >
How-To: Invoke services using HTTP | Dapr Docs
Our example above showed you how to directly invoke a different service running locally or in Kubernetes. Dapr: ... For more information on...
Read more >
micronautfw/questions - Gitter
Hi! I'm looking into using Micronaut to handle simple SOAP calls and invoke simple SOAP services. I've looked at micronaut-jackson-xml, but that doesn't...
Read more >
How to easily invoke Simple REST Service trigerred using ...
My Requirement: Invoke a simple Get request originated from Arduino Uno and via ESP8266 WIFI Shield to submit to server and process the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found