title: getting Network Error when calling axios get request in react js
body: <p>I am using React.js in macOS and when I try to call <code>axios.get</code>, I get Network Error. I read many other cases like mine who were using React Native and the answer to them was adding settings to allow them to use <code>http</code> in mac instead of <code>https</code>, but that setting can not be used in react js.</p>
  <p>Any advice would be appreciated.</p>
  <pre class="lang-js prettyprint-override"><code>Error: Network Error
      at createError (createError.js:17)
      at XMLHttpRequest.handleError (xhr.js:87)
  </code></pre>
  <p>My code is like this:</p>
  <pre><code>try {
    const Response = await axios.get(http://xxxxx/WebServiceTest/service.svc?wsdl/GetItems, {
     
      params: {
        Number: &quot;100&quot;,
        Id: &quot;101&quot;,
        userName: &quot;11&quot;,
        credential: &quot;Test&quot;
      }
    });
    console.log(&quot;http response = &quot; + Response.data);
  } catch (ex) {
    console.log(&quot;error.status:&quot;, ex);
  }
  </code></pre>