Try to search your question here, if you can't find : Ask Any Question Now ?

Possible Unhandled Promise Rejection / Error: Request failed with status code 400

HomeCategory: stackoverflowPossible Unhandled Promise Rejection / Error: Request failed with status code 400
willson asked 3 weeks ago

I know there are some answers on this and I read them all. But none of them helped.
So this is my error message:

Error message

And here is my action:

export function registerUser(data){
const request = axios({
    method: "POST",
    url: `${REGISTER}${API_KEY}`,
    data: {
        email: data.email,
        password: data.password,
    },
    headers:{
        "Content-Type":"application/json"
    }
}).then(response => response.data)

return {
    type: "REGISTER_USER",
    payload: request,
}

}

Thanks!

1 Answers
Best Answer
naveen answered 3 weeks ago
Your Answer

5 + 5 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com