Grpc ,The server cannot be accessed

45 views
Skip to first unread message

david smith

unread,
Jul 16, 2020, 12:16:10 AM7/16/20
to grpc.io
The client call reported such an error :   Request protocol 'HTTP/1.1' is not supported.
But, I did,"Kestrel": {
    "EndpointDefaults": {
      "Protocols": "Http2"
    }
  },
i do not know why.who could help me?

Jan Tattermusch

unread,
Jul 23, 2020, 7:14:50 AM7/23/20
to grpc.io
Without proper information on how to reproduce the problem (e.g. sharing a minimal reproduction as e.g. a github repository), it's not really possible to help. You're project is probably misconfigured in some way, but there's not enough information to be able to tell what's wrong. I suggest comparing the code you have with the official examples in grpc/grpc-dotnet and perhaps you'll be able to find the issue.

Mya Pitzeruse

unread,
Jul 23, 2020, 10:52:37 AM7/23/20
to Jan Tattermusch, grpc.io
Hey David,

What language are you working with and where is your server running?

It's likely your connection is being downgraded by middleware (like Cloudflare, AWS application load balancers, nginx, etc). gRPC requires HTTP/2 all the way through to the server, and in some cases some additional configuration. For example, the nginix Kubernetes ingress controller requires additional annotations to terminate TLS and swap over to cleartext (if terminating at the edge).

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7d081239-0d56-42db-af11-14eb1d8727e2n%40googlegroups.com.


--

Mya Pitzeruse

Principal Software Engineer - Service Infrastructure

Gender Pronouns: She, Her, Hers

mjp...@indeed.com


Indeed - We help people get jobs.

Indeed.com


Facebook  |  Twitter  |  Instagram

Reply all
Reply to author
Forward
0 new messages