title: Scraping data from stats.nba.com, Getting Error in curl::curl_fetch_memory(url, handle = handle)
body: <p>I'd like to scrape team advanced stats from stats.nba.com.</p>
  
  <p>My current code to get the XHR file where the data is stored is :</p>
  
  <pre><code>library(httr)
  library(jsonlite)
  
  
  nba &lt;- GET('https://stats.nba.com/stats/leaguedashteamstats?Conference=&amp;DateFrom=11%2F12%2F2019&amp;DateTo=&amp;Division=&amp;GameScope=&amp;GameSegment=&amp;LastNGames=0&amp;LeagueID=00&amp;Location=&amp;MeasureType=Advanced&amp;Month=0&amp;OpponentTeamID=0&amp;Outcome=&amp;PORound=0&amp;PaceAdjust=N&amp;PerMode=PerGame&amp;Period=0&amp;PlayerExperience=&amp;PlayerPosition=&amp;PlusMinus=N&amp;Rank=N&amp;Season=2019-20&amp;SeasonSegment=&amp;SeasonType=Regular+Season&amp;ShotClockRange=&amp;StarterBench=&amp;TeamID=0&amp;TwoWay=0&amp;VsConference=&amp;VsDivision=')
  </code></pre>
  
  <p>I get the URL via these steps in Chrome:
  Inspect -> Network -> XHR</p>
  
  <p>The code throws this error:</p>
  
  <pre><code>Error in curl::curl_fetch_memory(url, handle = handle) : 
    LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
  </code></pre>
  
  <p>I also tried it with custom advanced filters on the website which either result in the same error or the code running forever. I'm not that great in web scraping so I would appreciate if anyone can point out what the issue is here. </p>