React: Axios Network Error : <p>This is my first time using axios and I have encountered an error. </p>

<pre><code>  axios.get(
    `http://someurl.com/page1?param1=1&amp;param2=${param2_id}`
  )
  .then(function(response) {
    alert();
  })
  .catch(function(error) {
    console.log(error);
  });
</code></pre>

<p>With the right url and parameters, when I check network requests I indeed get the right answer from my server, but when I open console I see that it didn't call the callback, but instead it caught an error.</p>

<blockquote>
  <p>Error: Network Error
  Stack trace:
  createError@<a href="http://localhost:3000/static/js/bundle.js:2188:15" rel="noreferrer">http://localhost:3000/static/js/bundle.js:2188:15</a>
  handleError@<a href="http://localhost:3000/static/js/bundle.js:1717:14" rel="noreferrer">http://localhost:3000/static/js/bundle.js:1717:14</a></p>
</blockquote>
