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

build fail #16

Open
jinleileiking opened this issue May 16, 2017 · 3 comments · May be fixed by #18
Open

build fail #16

jinleileiking opened this issue May 16, 2017 · 3 comments · May be fixed by #18

Comments

@jinleileiking
Copy link

../../../../../github.com/philips/grpc-gateway-example/echopb/service.pb.gw.go:86: not enough arguments in call to runtime.AnnotateContext
        have ("golang.org/x/net/context".Context, *http.Request)
        want ("golang.org/x/net/context".Context, *runtime.ServeMux, *http.Request)
../../../../../github.com/philips/grpc-gateway-example/echopb/service.pb.gw.go:88: not enough arguments in call to runtime.HTTPError
        have ("golang.org/x/net/context".Context, runtime.Marshaler, http.ResponseWriter, *http.Request, error)
        want ("golang.org/x/net/context".Context, *runtime.ServeMux, runtime.Marshaler, http.ResponseWriter, *http.Request, error)
../../../../../github.com/philips/grpc-gateway-example/echopb/service.pb.gw.go:93: not enough arguments in call to runtime.HTTPError
        have ("golang.org/x/net/context".Context, runtime.Marshaler, http.ResponseWriter, *http.Request, error)
        want ("golang.org/x/net/context".Context, *runtime.ServeMux, runtime.Marshaler, http.ResponseWriter, *http.Request, error)
../../../../../github.com/philips/grpc-gateway-example/echopb/service.pb.gw.go:97: not enough arguments in call to forward_EchoService_Echo_0
        have ("golang.org/x/net/context".Context, runtime.Marshaler, http.ResponseWriter, *http.Request, proto.Message, []func("golang.org/x/net/context".Context, http.ResponseWriter, proto.Message) error...)
        want ("golang.org/x/net/context".Context, *runtime.ServeMux, runtime.Marshaler, http.ResponseWriter, *http.Request, proto.Message, ...func("golang.org/x/net/context".Context, http.ResponseWriter, proto.Message) error)
@utopiaprince
Copy link

i get the same problem with you. i found that my protoc version is too new. then i remove the "github.com/grpc-ecosystem/grpc-gateway" from vendor folder. and do this:

go get -u -v github.com/grpc-ecosystem/grpc-gateway

after that, i fixed this problem.

@philips
Copy link
Owner

philips commented Jun 6, 2017

@utopiaprince would you be able to send a PR to update the vendor dir?

@graphaelli
Copy link
Contributor

Ran into this too but don't see a vendor so sent a PR to update the code instead.

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

Successfully merging a pull request may close this issue.

4 participants