-
Notifications
You must be signed in to change notification settings - Fork 440
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
undefined: transport.StreamFromContext #174
Comments
This was removed in a recent commit to grpc-go. See grpc/grpc-go#1904 (comment). Apparently this API should not be used by external packages. |
What is the sequence of steps that results in this problem? When building the project, I cannot reproduce the error outlined here. |
Just |
Maybe the problem is grpc-go itself and you happen the have the last working version?
|
Reproduced now. Had to delete my existing grpc-web to trigger it. This is a problem in a downstream dependency. Will investigate. The dependencies of |
This is reproducable with a recent version of gRPC, so this repo needs to fix the use of a deprecated function or ensure that gRPC versions are constrained to below 1.11. I'm in favor of the former, if possible. |
I think if grpc/grpc-go#2016 gets implemented this should be a fairly straightforward fix. |
Is there a work-around or are we pretty much waiting for grpc-go at this point? |
Use an older version of gRPC is the workaround. |
grpc/grpc-go#2016 might mean we can incorporate a fix for this here now. |
I just bumped into this issue as well this afternoon. I found a quick and dirty work-around that I thought I'd share in case anyone else is sufficiently blocked and/or impatient to make use of such until a genuine fix is incorporated. After failing to "go get" grpcwebproxy with the transport.StreamFromContext undefined error message, I cd into my GOPATH's staged copy of grpc-go:
There is a tag for the v1.10.1 release, the last one before this artifact was removed. I first tried simply checking out that tag...
...but when I tried "go get" for grpcwebproxy in this state, the build failed with a complaint about that the google repository not being at the HEAD of master. I'm not planning on pushing this staging area back (I hope I wouldn't have sufficient permissions to do so if I tried, but I'm not about to try it and see all the same), so I attempted a soft reset back to master with the content of v1.10.1 still in my workspace, then committed the deltas I'd carried over.
At this point, I was able to "go get" grpcwebproxy successfully. Go did not seem to care that my staged branch was one commit ahead of origin. |
Using |
grpc-proxy requires a small change in it's [proposal] By doing that you can change the Also, by adding it to this project then it means this project is not dependent on |
For anyone stumbling here, this commit perfectly describes how to fix For example, I had this problem with http://github.com/improbable-eng/grpc-web, and the following worked: go get -u github.com/improbable-eng/grpc-web/go/grpcwebproxy
cd $GOPATH/src/github.com/improbable-eng/grpc-web
brew install dep # install golang/dep somehow
dep ensure
go get -u github.com/improbable-eng/grpc-web/go/grpcwebproxy After that |
It seems this is no longer a problem with the vendored version of gRPC |
% go get -u github.com/improbable-eng/grpc-web/go/grpcwebproxy # github.com/mwitkow/grpc-proxy/proxy go/src/github.com/mwitkow/grpc-proxy/proxy/handler.go:63:30: undefined: transport.StreamFromContext %
The text was updated successfully, but these errors were encountered: