Failed to dial target host "service_name.koyeb.app:50051": context deadline exceeded

My build has successfully, but when i try to check any endpoint using grpcurl it give me this failure “Context deadline exceeded”

The service instance logs are healthy

Instance created. Preparing to start...
Instance is starting... Waiting for health checks to pass.
Starting gRPC server on 0.0.0.0:50051
Instance is healthy. All health checks are passing.

and in my grpcurl:

grpcurl -proto protos/health.proto \
  service_name.koyeb.app:50051 \
  vader.health.Health/Check
Failed to dial target host "service_name.koyeb.app:50051": context deadline exceeded

on local the server works normally, only at the deployment that give me this

anyone can help me?

Hey,

I’m not sure what you are testing.

  • Are you running this grpcurl command from within your Instance or from your computer?
  • Are you using service_name.koyeb.app:50051 or the URL displayed in the control panel?

Also, if you’re doing gRPC, you need to change the protocol to HTTP/2

1 Like