When I update to the latest commit , go build failed with errors
# google.golang.org/grpc/transport
transport/handler_server.go:203: undefined: http2.TrailerPrefix
transport/http2_client.go:678: undefined: http2.MetaHeadersFrame
transport/http2_client.go:750: undefined: http2.MetaHeadersFrame
transport/http2_server.go:140: undefined: http2.MetaHeadersFrame
transport/http2_server.go:253: undefined: http2.MetaHeadersFrame
transport/http_util.go:279: f.fr.ReadMetaHeaders undefined (type *http2.Framer has no field or method ReadMetaHeaders)
BTW: Do you have any plan to release a stable version ?
please rerun go get -u google.golang.org/grpc to get the latest updates in http2 package.
OK , It works. Thanks !
same issue, go get -u google.golang.org/grpc doesn't help
is there a stable version that supposed just to work?...
What go version do u use?
On Jul 31, 2016 8:34 AM, "Sergey F." [email protected] wrote:
same issue, go get -u google.golang.org/grpc doesn't help
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc-go/issues/581#issuecomment-236436554, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpyLDY86ihs33glq9pPcusNmHKKRNAsks5qbMB2gaJpZM4HmGio
.
go 1.6 linux
Does this depend on Go 1.7 now or something? Updating doesn't help because it's still using MetaHeadersFrame: https://github.com/grpc/grpc-go/blob/35896af9ad39c1fb1b1cd925fe3621be361e3d81/transport/http2_client.go#L814
What's the issue with MetaHeadersFrame? No, grpc does not depend on 1.7.
Have you tried go get -u google.golang.org/grpc/...?
Turns out I had to update golang.org/x/net (I think), then it built.
I came across this error on go1.6.2 linux/amd64 on Ubuntu 16.04. Here's how I got it fixed, if someone comes across this issue after googling.
I tried go get -u google.golang.org/grpc. It didn't work because golang.org/x/net had uncommitted changes. git checkout -- . inside golang.org/x/net and repeated go get -u google.golang.org/grpc. This fixed it.
Don't know why, but when using Glide, I had to manually update the lock file to use the latest commit. Even when I removed the lock file, it resolved the wrong commit hash. Subsequent glide ups work though, it does not touch the (correct) commit hash.
cd $GOPATH/src/golang.org/x/net/http2 && git checkout master && git pull
helped me.
The head was detached there for some reason:
$ git status
HEAD detached at f09c466
nothing to commit, working directory clean
In my case, library cache remains on glide project directory.
So I had to clean cache with glide cc before I entered glide up .
[keke@localhost etcd]$ go build
../google.golang.org/grpc/transport/handler_server.go:220: undefined: http2.TrailerPrefix
../google.golang.org/grpc/transport/http2_client.go:1070: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http2_client.go:1191: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http2_server.go:232: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http2_server.go:404: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http_util.go:200: undefined: http2.MetaHeadersFrame
../google.golang.org/grpc/transport/http_util.go:465: f.fr.SetReuseFrames undefined (type *http2.Framer has no field or method SetReuseFrames)
../google.golang.org/grpc/transport/http_util.go:466: f.fr.ReadMetaHeaders undefined (type *http2.Framer has no field or method ReadMetaHeaders)
../google.golang.org/grpc/transport/http_util.go:596: f.fr.ErrorDetail undefined (type *http2.Framer has no field or method ErrorDetail)
ways such questions?
@KeKe-Li did you go get -u google.golang.org/grpc?
If so, try to repro with a clean GOPATH. The build is green, so there must be something wrong with your environment.
okI http://cn.bing.com/dict/search?q=I&FORM=BDVSP6&mkt=zh-cn'm
http://cn.bing.com/dict/search?q=%27m&FORM=BDVSP6&mkt=zh-cn try
http://cn.bing.com/dict/search?q=try&FORM=BDVSP6&mkt=zh-cn again
http://cn.bing.com/dict/search?q=again&FORM=BDVSP6&mkt=zh-cn ,thank you !
2017-08-25 0:18 GMT+08:00 dfawley notifications@github.com:
@KeKe-Li https://github.com/keke-li did you go get -u
google.golang.org/grpc?If so, try to repro with a clean GOPATH. The build is green
https://travis-ci.org/grpc/grpc-go, so there must be something wrong
with your environment.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc-go/issues/581#issuecomment-324684289, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMdRq-MKy9kJIE1Q5zB0ICdbIRpaYuwsks5sbaJAgaJpZM4HmGio
.
Most helpful comment
please rerun go get -u google.golang.org/grpc to get the latest updates in http2 package.