title: Why axios GET error when downloading json file from remote AWS S3 server
body: <p>In a React app I'm trying to download a .json file from AWS S3 with following code:</p>
  
  <pre><code>componentDidMount() {
  
      axios.get(`https://amplify-NotRealUrl-dev-333333-deployment.s3.us-east-2.amazonaws.com/rulesSummaryData2.json`)
        .then(response =&gt; {
          console.log("SUCCESS", response);
        }, error =&gt; {
          console.log("ERROR", error);
        });
  }
  </code></pre>
  
  <p><strong>In browser Console window, I see this error:</strong></p>
  
  <p>ERROR Error: Network Error
      at createError (createError.js:16)
      at XMLHttpRequest.handleError (xhr.js:83)</p>
  
  <p>JSON file is wide-open to the public, no permissions, and I am able to put url in browser and download with no authentication.  Also, I can successfully perform GET in Postman.  Also, I plugged in an open api GET url, not .json, but it did return successful. Seems to be problem with .json. However I've seen many links showing similar functionality with .json. I'm missing something!</p>
  
  <p><strong>ADDITIONAL INFO (Update):</strong>
  This error occurs no matter the URL I use. For example, if I use
   axios.get(<code>https://ThisIsNotAValidURLThisIsNotAValidURLThisIsNotAValidURLThisIsNotAValidUR.json</code>)</p>
  
  <p>I still get the exact same error. In addition, I used another base React app, to make sure this projects wasn't the cause, same outcome.</p>