Git Product home page Git Product logo

Comments (2)

HanHoRang avatar HanHoRang commented on August 29, 2024

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```

from grpc-gateway-example.

HanHoRang avatar HanHoRang commented on August 29, 2024

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)```

from grpc-gateway-example.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.