title: How to solve ConnectionError (RemoteDisconnected) in Python?
body: <p>I am trying to scrape <a href="https://gmatclub.com/forum/decision-tracker.html" rel="nofollow noreferrer">https://gmatclub.com/forum/decision-tracker.html</a> and I am able to get majority of things that I want but sometimes I am stuck with <code>ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))</code>.</p>
  <p>How do I solve it?</p>
  <p>My code is:</p>
  <pre><code>import requests
  
  link = 'https://gmatclub.com/api/schools/v1/forum/app-tracker-latest-updates'
  params = {
      'limit': 500,
      'offset': 0,
      'year': 'all'
  }
  
  with requests.Session() as con:
      con.headers[&quot;User-Agent&quot;] = &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 YaBrowser/21.3.0.740 Yowser/2.5 Safari/537.36&quot;
      con.get(&quot;https://gmatclub.com/forum/decision-tracker.html&quot;)
      while True:
          endpoint = con.get(link,params=params).json()
          if not endpoint[&quot;statistics&quot;]:break
          for item in endpoint[&quot;statistics&quot;]:
              print(item['school_title'])
  
          params['offset']+=499
  </code></pre>