I’m trying to setup a serviceRouter on a service with protocol HTTP, setting a retry mechanism on a service which is grpc
serviceRouter
hcl for http-service
Kind = "service-router"
Name = "service-http"
Routes = [
{
Match{
HTTP {
PathPrefix = "/path.to.grpc-service"
}
}
Destination {
Service = "grpc-service"
RequestTimeout = "10s"
NumRetries = 5
RetryOnConnectFailure = true
}
}
]
Consul returns a 500 error when trying to setup the serviceRouter
as it were unsupported
Error writing config entry service-router/http-service: Unexpected response code: 500 (rpc error making call: discovery chain "http-service" uses inconsistent protocols; service "grpc-service" has "grpc" which is not "http")
I’ve looked at the documentation and haven’t found much information regarding the topic…
Am I missing something obvious? Or is this scenario unsupported?