Getting ERR::HTTP2_PROTOCOL_ERROR on Azure CDN using React App

Gabor Ferencz 20 Reputation points
2023-06-27T11:25:27.1566667+00:00

Hi,

I have a Next app hosted on an azure app service in Linux, using a container, and an Azure CDN in front of it.

In fact, I have 2, but the setup is the same. Intermittently, I receive an error when trying to load the next assets.

This only happens on the next assets, both js and css.

User's image

For 1 minute, the status of the assets is stuck in pending after which, we get a failed message and the assets are not loaded User's image

This happens on two separate sites, and upon taking chrome logs, it says server reset connection.

Using the site from app service works perfectly every time.

We've only just now started putting a CDN in front of a react app, so unsure if that has any bearing on it, but all resources are prefixed with the custom domain assigned to the CDN, and we're going to be exposing the site to the public through the custom domain.

Is there something wrong that we are doing? I saw this:

https://learn.microsoft.com/en-us/answers/questions/239978/intermittent-err-http2-protocol-error-http2-stream

But there is no solution? Is it not possible to use Azure CDN in this way? Should we use a different service?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
858 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,970 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.