Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
XiGuaZhenHaoChi opened this issue Jun 21, 2024 · 1 comment

Comments

@XiGuaZhenHaoChi
Copy link

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
Copy link
Author

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

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant