First time posting a question please keep it in mind when reading
Things i tried: Cleared my google chrome cache and cookies, tried incognito mode, updated my node to the latest version still getting the same error.
Error I'm Getting chrome: Failed to load resource: the server responded with a status of 431 (Request Header Fields Too Large)
auth.js:22 doubt its relevant but source in dev tools Giving me the error at fetch part
export const authInit = data => {
const { user, type } = data;
let url;
if (type === "Login") {
url = "/api/auth/login";
} else if (type === "Register") {
url = "/api/auth/register";
}
return dispatch => {
dispatch({ type: actionTypes.LOADING });
return fetch(url, {
method: "POST",
body: JSON.stringify(user),
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.then(response => {
if (!response.success) {
return dispatch(authError(response.messages));
}