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

all SubConns are in TransientFailure #936

Closed
dncmn opened this issue May 15, 2019 · 2 comments
Closed

all SubConns are in TransientFailure #936

dncmn opened this issue May 15, 2019 · 2 comments

Comments

@dncmn
Copy link

dncmn commented May 15, 2019

all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp [::1]:8081: connect: connection refused

@dncmn
Copy link
Author

dncmn commented May 15, 2019

syntax = "proto3";

package helloworld;
import "google/api/annotations.proto";

message StringMessage {
string value = 1;
}

service YourService {
rpc Echo(StringMessage) returns (StringMessage) {
option (google.api.http) = {
post: "/v1/example/echo"
body: "*"
};
}
}

@achew22
Copy link
Collaborator

achew22 commented May 15, 2019

This is not a bug in grpc-gateway, but a bug in the way you're running your server. The error message "transport: Error while dialing dial tcp [::1]:8081: connect: connection refused" indicates that the gRPC client was unable to connect to a gRPC server running on port 8081 for forwarding purposes.

Since this is an issue in the configuration of the server you're trying to spin up, I'm going to close this and point you to gRPC getting started guide. Once you have a client/server set up through that process, grpc-gateway is probably a next best step. Good luck!

@achew22 achew22 closed this as completed May 15, 2019
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

2 participants