Open Raghav2709 opened 6 months ago
Can you please share the corresponding code of server-side that's handling the post request. I'd also like to add that '404' indicates 'non found', this may indicate that an endpoint is not correctly configured to /user/signup
@Raghav2709 check if you are running server on port 5000.
hey, any updates? I am also stuck on this issue!
I too am stuck here
POST http://localhost:5000/user/signup 404 (Not Found) auth.js:24 AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …} code : "ERR_BAD_REQUEST" config : {transitional: {…}, adapter: Array(2), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …} message : "Request failed with status code 404" name : "AxiosError" request : XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …} response : {data: '<!DOCTYPE html>\n\n
\n<meta char…e>Cannot POST /user/signup\n\n\n', status: 404, statusText: 'Not Found', headers: AxiosHeaders, config: {…}, …} stack : "AxiosError: Request failed with status code 404\n at settle (http://localhost:3000/main.163b7d63dc2807d8e50b.hot-update.js:1572:12)\n at XMLHttpRequest.onloadend (http://localhost:3000/main.163b7d63dc2807d8e50b.hot-update.js:266:66)" [[Prototype]] : Error