Relative Content

Tag Archive for reactjsmongodbmern

Why does this post method return an error 404 axios ? Could somebody help me solve this?

{ “message”: “Request failed with status code 404”, “name”: “AxiosError”, “stack”: “AxiosError: Request failed with status code 404n at settle (http://localhost:5000/node_modules/.vite/deps/axios.js?v=269784b8:1216:12)n at XMLHttpRequest.onloadend (http://localhost:5000/node_modules/.vite/deps/axios.js?v=269784b8:1562:7)n at Axios.request (http://localhost:5000/node_modules/.vite/deps/axios.js?v=269784b8:2078:41)”, “config”: { “transitional”: { “silentJSONParsing”: true, “forcedJSONParsing”: true, “clarifyTimeoutError”: false }, “adapter”: [ “xhr”, “http”, “fetch” ], “transformRequest”: [ null ], “transformResponse”: [ null ], “timeout”: 0, “xsrfCookieName”: […]

Why this post method returns 404 axios error . could somebody help me to sole this?

{
“message”: “Request failed with status code 404”,
“name”: “AxiosError”,
“stack”: “AxiosError: Request failed with status code 404n at settle (http://localhost:5000/node_modules/.vite/deps/axios.js?v=269784b8:1216:12)n at XMLHttpRequest.onloadend (http://localhost:5000/node_modules/.vite/deps/axios.js?v=269784b8:1562:7)n at Axios.request (http://localhost:5000/node_modules/.vite/deps/axios.js?v=269784b8:2078:41)”,
“config”: {
“transitional”: {
“silentJSONParsing”: true,
“forcedJSONParsing”: true,
“clarifyTimeoutError”: false
},
“adapter”: [
“xhr”,
“http”,
“fetch”
],
“transformRequest”: [
null
],
“transformResponse”: [
null
],
“timeout”: 0,
“xsrfCookieName”: “XSRF-TOKEN”,
“xsrfHeaderName”: “X-XSRF-TOKEN”,
“maxContentLength”: -1,
“maxBodyLength”: -1,
“env”: {},
“headers”: {
“Accept”: “application/json, text/plain, /“,
“Content-Type”: “application/json”
},
“method”: “post”,
“url”: “http://localhost:5000/signup”,
“data”: “{“email”:”[email protected]”,”password”:”123″,”confirmpassword”:”123″}”
},
“code”: “ERR_BAD_REQUEST”,
“status”: 404
}