"undefined: errors.Is" happens in gRPC v1.10.0 and GO 1.9

1,307 views
Skip to first unread message

Chang Zhi

unread,
Jan 28, 2022, 8:15:10 AM1/28/22
to grpc.io
Hi, all
I met a problem when I tried to compile the "HelloWorld" program followed by this[1]. In my environment, the GO version is 1.9. Here are the detailed steps:

1. Get the lastest grpc code:
2. Go to the GOPATH and checkout the grpc repo to v1.10.0
3. Try to compile and install gRPC v1.10.0

In the step3, I met these error messages:
# golang.org/x/net/http2
/opt/go/src/golang.org/x/net/http2/client_conn_pool.go:302:6: undefined: errors.Is
/opt/go/src/golang.org/x/net/http2/server.go:240:72: undefined: tls.VersionTLS13
/opt/go/src/golang.org/x/net/http2/transport.go:417:30: undefined: errors.Is
/opt/go/src/golang.org/x/net/http2/transport.go:417:45: undefined: os.ErrDeadlineExceeded
/opt/go/src/golang.org/x/net/http2/transport.go:2076:5: undefined: errors.Is
/opt/go/src/golang.org/x/net/http2/transport.go:2080:5: undefined: errors.Is
/opt/go/src/golang.org/x/net/http2/transport.go:2084:5: undefined: errors.Is

So, my question is, does the gRPC v1.10.0 support GO1.9?

Could someone give me some advice?

Thanks
Zhi Chang

Easwar Swaminathan

unread,
Feb 2, 2022, 1:44:31 PM2/2/22
to grpc.io
Please use a more recent version of gRPC and Go.

You can find the latest examples here: https://github.com/grpc/grpc-go/tree/v1.44.x/examples, and the minimum Go version supported by gRPC-Go is Go1.14.
Reply all
Reply to author
Forward
0 new messages