title: The await httpClient.GetByteArrayAsync() in HttpClient suddenly stop after many videos downloaded?
body: <p>After 2-4 downloading of videos data from API using HttpClient suddenly prompt error.
  Here's my code:</p>
  
  <pre><code>public async Task&lt;byte[]&gt; GetMedia(string id)
  {
         var api = $"/api/v1/download/{id}";
         var Uri = $"{MccBaseURL}{api}";
  
         byte[] responseBody;
         httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("No");
  
         try
          {
              HttpResponseMessage response = await httpClient.GetAsync(Uri);
              response.EnsureSuccessStatusCode();
  
              responseBody = await response.Content.ReadAsByteArrayAsync();
  
              if (response.IsSuccessStatusCode)
              {
                  return responseBody;
              }
          }
          catch (Exception ex)
          {
              Debug.Print(ex.Message);
              throw;
          }
  }
  </code></pre>
  
  <p>Then below is the error faced:</p>
  
  <p><a href="https://i.stack.imgur.com/3OXGF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3OXGF.png" alt="enter image description here"></a></p>
  
  <p>Additional error info:
  <a href="https://i.stack.imgur.com/V97iO.png" rel="nofollow noreferrer">Error</a>
  Please help me?</p>