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

An error occurs during execution. #29

Open
HanHoRang opened this issue Jan 26, 2021 · 2 comments
Open

An error occurs during execution. #29

HanHoRang opened this issue Jan 26, 2021 · 2 comments

Comments

@HanHoRang
Copy link

HanHoRang commented Jan 26, 2021

$ go get -u github.com/philips/grpc-gateway-example

cd /root/go/src/github.com/grpc-ecosystem/grpc-gateway; git pull --ff-only
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/<branch> v1.4.1

package github.com/grpc-ecosystem/grpc-gateway/runtime: exit status 1
cd /root/go/src/github.com/golang/protobuf; git pull --ff-only
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

git pull

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/ v1.2.0

package github.com/golang/protobuf/proto: exit status 1

what is that?

@HanHoRang
Copy link
Author

HanHoRang commented Jan 26, 2021

I solve them(go get -u -v github.com/philips/grpc-gateway-example)
But not execute
$ grpc-gateway-example serve
grpc-gateway-example: command not found
$ go build

../../google.golang.org/genproto/googleapis/rpc/status/status.pb.go:42:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4
google.golang.org/grpc/binarylog/grpc_binarylog_v1
../../google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go:46:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4
 google.golang.org/genproto/googleapis/api/annotations
../../google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:41:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4
../../google.golang.org/genproto/googleapis/api/annotations/client.pb.go:41:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4
../../google.golang.org/genproto/googleapis/api/annotations/field_behavior.pb.go:42:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4
../../google.golang.org/genproto/googleapis/api/annotations/http.pb.go:41:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4
../../google.golang.org/genproto/googleapis/api/annotations/resource.pb.go:42:11: undefined: "github.com/golang/protobuf/proto".ProtoPackageIsVersion4```

@HanHoRang
Copy link
Author

HanHoRang commented Jan 26, 2021

I deleted the above library and updated the golang version to 1.13.15.
When the following command is executed, an error occurs in echopb.

../go/src/github.com/philips/grpc-gateway-example/echopb/service.pb.gw.go:95:39: not enough arguments in call to runtime.AnnotateContext
        have ("context".Context, *runtime.ServeMux, *http.Request)
        want ("context".Context, *runtime.ServeMux, *http.Request, string)
../go/src/github.com/philips/grpc-gateway-example/echopb/service.pb.gw.go:107:29: cannot use resp (type protoiface.MessageV1) as type protoreflect.ProtoMessage in argument to forward_EchoService_Echo_0:
        protoiface.MessageV1 does not implement protoreflect.ProtoMessage (missing ProtoReflect method)```

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

1 participant