Franco
Franco

Reputation: 12545

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

I'm writting a proxy where I can send post request in asynchronous way. The method always get "Not Found" response when executed as async and OK when sync.

Sync method (OK Status) enter image description here

Async method (Not Found status) enter image description here

What could I be doing wrong since the request is the very same for both?

Upvotes: 0

Views: 440

Answers (1)

Artyom A.
Artyom A.

Reputation: 67

Could you replace the second call with the restClient.ExecuteTaskAsync?

Upvotes: 2

Related Questions