akashyap2013 / MERN_Login_App_with_ResetEmail

In this project, we are going to create the MERN Login App with Reset Email Feature.
234 stars 162 forks source link

Could not register #7

Open harshsainidev opened 1 year ago

harshsainidev commented 1 year ago

Please help me out Whenever I try to register it's showing error could not register and in the console this error showing:- register:1 Uncaught (in promise) {error: DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL at dispatchXhrRequest (…}error: DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL at dispatchXhrRequest (http://localhost:3000/static/js/bundle.js:51314:13) at new Promise () at xhr (http://localhost:3000/static/js/bundle.js:51288:10) at Axios.dispatchRequest (http://localhost:3000/static/js/bundle.js:52451:10) at Axios.request (http://localhost:3000/static/js/bundle.js:51901:77) at Axios.httpMethod [as post] (http://localhost:3000/static/js/bundle.js:51935:19) at Function.wrap [as post] (http://localhost:3000/static/js/bundle.js:52956:15) at registerUser (http://localhost:3000/static/js/bundle.js:1961:61) at onSubmit (http://localhost:3000/static/js/bundle.js:1140:89)stack: (...)code: 12message: "Failed to execute 'open' on 'XMLHttpRequest': Invalid URL"name: "SyntaxError"get stack: ƒ ()set stack: ƒ ()[[Prototype]]: DOMException[[Prototype]]: Object Promise.then (async) onSubmit @ Register.js:36 await in onSubmit (async) (anonymous) @ Formik.tsx:849 (anonymous) @ Formik.tsx:1200 (anonymous) @ Formik.tsx:756 Promise.then (async) (anonymous) @ Formik.tsx:731 (anonymous) @ Formik.tsx:1200 (anonymous) @ Formik.tsx:823 (anonymous) @ Formik.tsx:1200 callCallback @ react-dom.development.js:4164 invokeGuardedCallbackDev @ react-dom.development.js:4213 invokeGuardedCallback @ react-dom.development.js:4277 invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4291 executeDispatch @ react-dom.development.js:9041 processDispatchQueueItemsInOrder @ react-dom.development.js:9073 processDispatchQueue @ react-dom.development.js:9086 dispatchEventsForPlugins @ react-dom.development.js:9097 (anonymous) @ react-dom.development.js:9288 batchedUpdates$1 @ react-dom.development.js:26140 batchedUpdates @ react-dom.development.js:3991 dispatchEventForPluginEventSystem @ react-dom.development.js:9287 dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ react-dom.development.js:6465 c dispatchEvent @ react-dom.development.js:6457 dispatchDiscreteEvent @ react-dom.development.js:6430