abpframework / eShopOnAbp

Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
https://www.eShopOnAbp.com/
MIT License
664 stars 259 forks source link

Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection. #258

Closed XiGuaZhenHaoChi closed 21 hours ago

XiGuaZhenHaoChi commented 1 week ago

Hello everyone,I encountered this issue while using Tye The operation performed at that time was to add the product to the shopping cart Page prompts server internal exception,I found information in the basket-service log [basket-service_3b8c6f44-3]: [15:38:04 INF] Sending HTTP request POST http://catalogservice/CatalogApi.ProductPublic/GetById [basket-service_3b8c6f44-3]: [15:38:04 WRN] Execution attempt. Source: '-standard//Standard-Retry', Operation Key: 'null', Result: 'Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.', Handled: 'True', Attempt: '1', Execution Time: '2.6141' [basket-service_3b8c6f44-3]: System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection. Based on the abnormal information, I found the incorrect code image

XiGuaZhenHaoChi commented 1 week ago

I didn't have a smooth time running the official demo using Tye. I made some changes to the appsettings, and I'm not sure if these actions might be the cause of this problem

1.To address the issues in the diagram, the yarp.json file of the public web gateway has been modified image image

2. image image