Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • try using (var httpClient = new HttpClient()) Commented Dec 30, 2021 at 12:12
  • You should be using await for the async calls instead of .Result or Wait() Commented Dec 30, 2021 at 12:16
  • You are making the GET call too early, before adding parameters to the HTTP request headers. Is the web API expecting the params in headers or query string or body ? Commented Dec 30, 2021 at 12:22