title: Why does Axios get call return a 404 error with basic setup?
body: <p>I'm trying to set up a React project and want to get a basic get call working. The url I'm using is <code>https://jsonplaceholder.typicode.com/todos/1</code> just for testing and to see if everything is working well. However, I get a 404 error back. The call I make is</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>axios.get('https://jsonplaceholder.typicode.com/todos/1')
    .then(response =&gt; console.log(response))
    .catch(error =&gt; console.log(error.response));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I try this call with the Fetch API, I get the correct response but with Axios, I get back this error <code>{status: 404, config: {…}, data: undefined}</code>. I've been trying to fix this for days and nothing has worked. Is there some type of obvious setup I may have missed?</p>
  
  <p>I followed this tutorial for the most part: <a href="https://hackernoon.com/tutorial-how-to-make-http-requests-in-react-part-3-daa6b31b66be" rel="nofollow noreferrer">https://hackernoon.com/tutorial-how-to-make-http-requests-in-react-part-3-daa6b31b66be</a> </p>
  
  <p>Any help is appreciated :)</p>