title: Uncaught (in promise) Error: Request failed with status code 404
body: <p>I am getting above error while fetching some data from the API. Following is the code of the <code>action creator</code> where I am trying <code>GET</code> the data: </p>
  
  <pre><code>import { FETCH_USER } from './types';
  import axios from 'axios';
  
  
  export const fetchUser = () =&gt; async dispatch =&gt; {
  
          console.log('fetchUser');
  
          const res= await axios.get('/api/current_user');
  
          dispatch({ type: FETCH_USER, payload: res });
  
  }; 
  </code></pre>
  
  <p>Also when I am debugging in the code editor, console is giving me below error: </p>
  
  <p><code>SyntaxError: Unexpected token import</code></p>