A non-serializable value was detected in an action in redux

In a ReactJS project, how can I solve this issue?

A non-serializable value was detected in an action, in the path: payload. Value: AxiosError {message: ‘Request failed with status code 500’, name: ‘AxiosError’, code: ‘ERR_BAD_RESPONSE’, config: {…}, request: XMLHttpRequest, …}
Take a look at the logic that dispatched this action: {type: ‘auth/alreadyUser/fulfilled’, payload: AxiosError, meta: {…}}
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
(To allow non-serializable values see)