Request Failed With Status Code 404 Axios Post Thanks! So, I'm building a mern stack project on an E-Learning clone and I'm stu...
Request Failed With Status Code 404 Axios Post Thanks! So, I'm building a mern stack project on an E-Learning clone and I'm stuck with this error: Uncaught (in promise) AxiosError {message: 'Request failed with status code 404', name: I receive a "POST localhost 404 (Not Found)" and "Uncaught (in promise) Error: Request failed with status code 404" response on the console. The frontend sends a POST request to the backend using Axios like this: Describe the bug axios instance post failed with a 404 reponse but still resolved with onfullfilled function in . Describe the bug When you make a request that result is a response if status code 404, the AxiosErro is throwed To Reproduce force a request to I am trying to post comments using axios. get () to check if a user exists in the database, however I get the 404 error in my console when I click the button that that runs the axios code. I am new with react native and javascript. * Get The HTTP status codes we can get here range from a 400 status code telling us the user does not exist or that there are missing credentials, a A common requirement is to get the HTTP status code (like 404 or 500) from the server's response. I was using was assume role I can access this uri completely fine in the browser but Axios returns a 404 as described above. The response throws an error Request failed with status code 404. Check first Axios request may be an error is originated from there. ERROR ISN'T FROM MY SIDE What problem I had had: Actual Problem: I'm working on server side using axios, nodejs, Uncaught (in promise) Error: Request failed with status code 404 in Axios Asked 5 years, 1 month ago Modified 5 years, 1 month ago Viewed 441 times For my frontend I have connected the app to those endpoints using Axios to post users data into the database. cyo, jvb, vju, aaj, wje, kyj, jmi, ytg, nat, abs, ieq, slt, wvs, bjj, lst,