Comments (5)
Can't reproduce.
Another possible guess is that your protoc-gen-go
is out-of-date. What happens if you run go get -u github.com/golang/protobuf/protoc-gen-go
then try it again?
from grpc-gateway.
I guess the revision of google.golang.org/grpc
you have is inconsistent to the example.
Could you try running go get -u google.golang.org/grpc
to update the revision?
from grpc-gateway.
I'm on 0e69ad1, so latest master.
from grpc-gateway.
It seems to build now. Probably screwed up along somewhere. Thank you.
from grpc-gateway.
The generated protos that are currently in the repository work, but when regenerating using the instructions:
➜ protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/gengo/grpc-gateway/third_party/googleapis \
--go_out=Mgoogle/api/annotations.proto=github.com/gengo/grpc-gateway/third_party/googleapis/google/api,plugins=grpc:. echo_service.proto
➜ protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/gengo/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. echo_service.proto
Using protoc:
➜ protoc --version
libprotoc 3.0.0
And with go-grpc on 0e69ad1 (master) from 9 hours ago, and grpc-gateway on 67e1374 (master), I still get:
➜ go build
# github.com/gengo/grpc-gateway/examples/examplepb
examplepb/echo_service.pb.go:114: cannot use _EchoService_Echo_Handler (type func(interface {}, context.Context, grpc.Codec, []byte) (interface {}, error)) as type grpc.methodHandler in field value
examplepb/echo_service.pb.go:118: cannot use _EchoService_EchoBody_Handler (type func(interface {}, context.Context, grpc.Codec, []byte) (interface {}, error)) as type grpc.methodHandler in field value
from grpc-gateway.
Related Issues (20)
- Support improved tracing integration by exposing router / path earlier HOT 5
- Generated swagger creates anonymous structure for post methods with path params HOT 7
- NOOP file generation for protoc-gen-grpc-gateway HOT 4
- utilities.IOReaderFactory is inefficient HOT 2
- parse or map fragment from request URI HOT 1
- Bzlmod support HOT 4
- Help this people are in my accounr
- How to retrieve data from a gRPC handler in HTTP middleware HOT 2
- Internal comments not stripped from enum query parameter's description HOT 2
- Fetching request body in the customErrorHandler middleware HOT 5
- Buf - Wrong import in grpcgateway HOT 1
- Document about how to mark an arrray field as required in an extra openapi config file? HOT 1
- multi-folder not generating correct swagger file HOT 2
- [protoc-gen-openapiv2] Option to disable setting default values for enums without omitting it from the list of values HOT 3
- openapiv2_tag.name does not work HOT 4
- Grpc Gateway discards Any typed fields HOT 2
- Populating query param semantics changed since v2.15.0 HOT 3
- When the body is set to a oneof field, other fields in the same group are included as query.
- For a field of type google.protobuf.Empty, FieldMaskFromRequestBody does not generate any fieldmask HOT 3
- generate swagger schema title and description failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-gateway.