title: promise status code pending in Axios put request
body: <p>I am trying to perform edit action in react-redux. When I edit a form, it does not perform update action. I got <code>500 Internal Server Error</code> in my <code>Network's Status Code</code>. 
  In my action, I have this code:</p>
  
  <pre><code>export function updateStandup(id, standups) {
    return dispatch =&gt; {
      axios({
        headers: authHeader(),
        method: 'PUT',
        url: `${ROOT_URL}/standups/${id}${API_KEY}`,
        data: standups
      }).then(response =&gt; {
        dispatch(success(response))
      })
    }
  
    function success(response) {
      return {
        type: 'UPDATE_STANDUP',
        payload: response
      }
    }
  }
  </code></pre>
  
  <p>And in my reducer I have following code:</p>
  
  <pre><code>export function standup(state = {}, action){
    switch (action.type) {
      case 'UPDATE_STANDUP':
        return {
          standup: action.payload
        }
      }
      default:
        return state;
   }
  </code></pre>
  
  <p>Will anyone help me in solving this problem?</p>