title: RestSharp v107 not returning data
body: <p>I’ve used RestSharp 106 in the past but now I’m trying to get a new project up and running with v107. I did a simple test below but I can’t get it to return any data so I must be missing something that I’m not understanding. I’ve put a breakpoint at the top of the method and can follow it all the way down until it makes the async call and then the app just quits. I see the initial logging but again nothing after the async call. I would have thought I would see some logging about the list count or even the “Application END” piece. Anyone have any ideas on what I’m doing wrong? I’ve kept but commented out some of the different things I’ve tried.</p>
  <p>Link to the documentation I’m looking at.
  <a href="https://restsharp.dev/intro.html#introduction" rel="nofollow noreferrer">https://restsharp.dev/intro.html#introduction</a></p>
  <pre><code>public async void Run()
          {
              _log.LogInformation(&quot;Application START&quot;);
  
              try
              {
                  var listPPC = new List&lt;PriorPeriodCorrection&gt;();
  
                  listPPC = await CallApi();
  
              }
              catch (Exception ex)
              {
                  _log.LogError(&quot;Error: {0} | {1} | {2}&quot;, ex.Message, ex.StackTrace, ex.InnerException);
              }
  
              _log.LogInformation(&quot;Application END&quot;);
          }
  
  
          public async Task&lt;List&lt;PriorPeriodCorrection&gt;&gt; CallApi()
          {
              var listPPC = new List&lt;PriorPeriodCorrection&gt;();
  
              var apiURL = &quot;https://example.com&quot;;
              var apiEndpoint = &quot;api/payroll/getpriorpaycorrectiondata/from/2021-12-01/to/2021-12-07&quot;;
              var proxyAddress = &quot;http://example.com:9400&quot;;
  
  
              var apiUsername = &quot;someusername&quot;;
              var apiPassword = &quot;4PsaI69@tuv&quot;;
  
  
              var options = new RestClientOptions(apiURL)
              {
                  ThrowOnAnyError = true,
                  Timeout = 1000,
                  Proxy = new WebProxy(proxyAddress)
              };
  
              var client = new RestClient(options);
              client.Authenticator = new HttpBasicAuthenticator(apiUsername, apiPassword);
  
  
              var request = new RestRequest(apiEndpoint);
  
              try
              {
                  listPPC = await client.GetAsync&lt;List&lt;PriorPeriodCorrection&gt;&gt;(request);
  
                  //var response = await client.GetAsync&lt;PriorPeriodCorrection&gt;(request);
                  //var response = await client.GetAsync&lt;List&lt;PriorPeriodCorrection&gt;&gt;(request);
                  //var response = await client.GetAsync(request);
  
                  //if (!string.IsNullOrWhiteSpace(response.Content))
                  //{
                  //    listPPC = JsonConvert.DeserializeObject&lt;List&lt;PriorPeriodCorrection&gt;&gt;(response.Content);
                  //}
                  //else
                  //    _log.LogInformation(&quot;Response Content is Blank or NULL.&quot;);
              }
              catch (Exception ex)
              {
                  _log.LogError(&quot;Error: {0} | {1} | {2}&quot;, ex.Message, ex.StackTrace, ex.InnerException);
              }
  
              _log.LogInformation(&quot;Response count: {0}&quot;, listPPC.Count);
  
              return listPPC;
          }
  </code></pre>