Azure Api Management Self Hosted Gateway HTTP2 issue

Vladyslav Lobyntsev 0 Reputation points
2024-06-06T13:43:40.0366667+00:00

Hello, I am trying to connect the APIM to the regular (non-web) Grpc .Net backend using a self-hosted gateway, however, I see in the APIM logs that the HTTP version is downgraded from 2.0 to 1.1 when communicating with the backend.
User's image

APIM is the Premium tier. I have a self-hosted gateway (v2.6.0) deployed to the Kubernetes with the default configuration parameters. Http 2.0 is enabled in protocols.
User's image

Grpc APIM API is created with the following backend policy.

<backend>
   <forward-request http-version="2" />
</backend>

Communication with the backend is done through HTTPS. However, in APIM Logs I see that the protocol is downgraded when communicating with the backend and because of this (I assume) I don't receive trailing headers, which leads to "No grpc-status found on response." error. Please advise what am I doing wrong here.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,862 questions
0 comments No comments
{count} votes