Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

本地调试的时候报Status(StatusCode=Unavailable, Detail="Trying to connect an http1.x server")” #10

Open
ivan5151 opened this issue Mar 31, 2020 · 0 comments

Comments

@ivan5151
Copy link

在本地使用Consul发现模式,在调用方法的时候报Status(StatusCode=Unavailable, Detail="Trying to connect an http1.x server"),我在调用前启用了http2.0
AppContext.SetSwitch(
"System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
也是一样,不知道是什么问题?

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

No branches or pull requests

1 participant