-
Notifications
You must be signed in to change notification settings - Fork 92
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
HTTP 500s sent via gRPC are now sent as gRPC errors, with the body as a tailer. #36
Conversation
f0803ed
to
59994fa
Compare
httpgrpc/httpgrpc.go
Outdated
}) | ||
} | ||
|
||
func responseFromError(err error) (*HTTPResponse, bool) { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
httpgrpc/httpgrpc.go
Outdated
@@ -161,6 +164,40 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { | |||
} | |||
} | |||
|
|||
func errorFromResponse(resp *HTTPResponse) error { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
c410cf0
to
958cb82
Compare
7e16297
to
1cb91d9
Compare
There's a note in circle.yml saying not to change it until this PR is "fixed"; can anyone shed light on what that would mean, and if it has happened? |
No, I don't know, and regret not insisting on more context when I reviewed this. At a guess, it's related to the CircleCI failure we can see in the commit log:
I would suggest removing the workaround (i.e. installing |
Also, don't need to connect on a background goroutine any more, this is fixed in grpc/grpc-go#976.
Fixes #35