title: How to get a local file using axios?
body: <p>I am trying to get a local file:</p>
  
  <p>Resultado.js:</p>
  
  <pre><code>componentWillMount(){
    axios.get('../config/db.json')
    .then(function(response){
      alert('ok');
    })
    .catch(function(error){
      alert('error');
    });
  }
  </code></pre>
  
  <p>But, I am receiving an error:</p>
  
  <blockquote>
    <p>Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/5kleY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5kleY.png" alt="enter image description here"></a></p>
  
  <p>The file exists on the path</p>
  
  <p>My file db.json:</p>
  
  <pre><code>[{"id":"87","codigo":"00504.050.000.00.00","nomeCadastro":"GOIVO DOBRADO"},{"id":"86","codigo":"02023.050.000.10.02","nomeCadastro":"GERB ONEDIN"},{"id":"85","codigo":"00212.070.999.00.00","nomeCadastro":"CRIS SANT REAN"},{"id":"84","codigo":"01297.019.000.00.00","nomeCadastro":"ANTH VARIADO"}]
  </code></pre>