RestSharp post 请求在同步和异步调用时获得不同的状态

RestSharp post request gets different status when called as sync and async

我正在编写一个代理,我可以在其中以异步方式发送 post 请求。 该方法在异步执行时总是得到 "Not Found" 响应,在同步时得到 OK。

同步方法(正常状态)

异步方法(未找到状态)

我可能做错了什么,因为两者的请求完全相同?

你能用 restClient.ExecuteTaskAsync 代替第二个电话吗?