title: Axios Unhandled Promise Rejection
body: <p>I ve got a problem with axios in my react-native app.
  The error message is provided here <a href="https://i.stack.imgur.com/AZYcL.png" rel="nofollow noreferrer">Pic1</a>    <a href="https://i.stack.imgur.com/n7a9E.png" rel="nofollow noreferrer">Pic2</a>
  Actions.start()  never runs.</p>
  
  <p>Edit 1: 
  Heres the full code. 
  Edit 2:
  Picture of the error message<a href="https://i.stack.imgur.com/f1J0z.png" rel="nofollow noreferrer">Pic3</a>
  As to the results the const res= await... should be the problem.
  Have to add more details, otherwise I cant update this question ;)</p>
  
  <pre><code>export const apiPostLogin = (
   accountData
  ) =&gt; async dispatch =&gt; {
  dispatch(setFetching(true));
  try {
    var instance = axios.create({
      baseURL: 'https://api.xxxx.de/',
      timeout: 1000
   });
  
  const res = await axios.post('/api/v1/auth/login', accountData);
  Actions.Start();
  
  dispatch(setAuthToken(res.data.token));
  
  
    await dispatch(apiGetAccount(res.data.token));
    console.log(res);
  } catch (error) {
    console.log(error.response);
    dispatch(setFetching(false));
    if (error.response.status === 401) {
    dispatch(
      setApiResponse({
        apiResponse: true,
        didShowResponse: false,
        apiResponseError: true,
        apiResponseCode: 401,
        apiResponseMessage: 'E-Mail und Passwort stimmen nicht überein'
      })
    );
  } else if (error.response.status === 417) {
    dispatch(
      setApiResponse({
        apiResponse: true,
        didShowResponse: false,
        apiResponseError: true,
        apiResponseCode: 417,
        apiResponseMessage: 'Du hast Deine E-Mail noch nicht bestätigt'
      })
    );
  } else {
    dispatch(
      setApiResponse({
        apiResponse: true,
        didShowResponse: false,
        apiResponseError: true,
        apiResponseCode: 499,
        apiResponseMessage:
          'Du kannst Dich im Moment nicht bei uns anmelden. Wir befinden   uns im Wartungsmodus'
      })
     );
     }
    }
    };
  </code></pre>