DEV Community

Cover image for Error on POST in sign up
Fuhad Kalathingal
Fuhad Kalathingal

Posted on

Error on POST in sign up

when iam click sign up i get this error

Top comments (5)

Collapse
 
moopet profile image
Ben Sinclair

What error? The one in the post cover image?
It's difficult to read, but... if that's your real phone number I'd remove it fast!

I don't think anyone can help you unless you give more information pertinent to the problem - what is this written in? What's it supposed to do, etc.?

It could be lots of things. If you're running node as a back-end, for example, you'll see SSL_PROTOCOL_ERROR if you're running some newer packages. Node is dependency hell. Try adding NODE_OPTIONS=--openssl-legacy-provider before your script entry for example.

Collapse
 
fuhadkalathingal profile image
Fuhad Kalathingal • Edited

yaa that one in cover image . when iam clicking the signup button the console reports this error.
i will share my git repo for more detail
github.com/Muhammed-Fuhad/react_ch...

can u help me to solve it ?

Collapse
 
moopet profile image
Ben Sinclair

I suspect if you edit your package.json and change what you have in script from this:

"scripts": {
  "start": "node index.js",
  "dev": "nodemon index.js"
}
Enter fullscreen mode Exit fullscreen mode

to this:

"scripts": {
  "start": "NODE_OPTIONS=--openssl-legacy-provider node index.js",
  "dev": "NODE_OPTIONS=--openssl-legacy-provider nodemon index.js"
}
Enter fullscreen mode Exit fullscreen mode

it might fix it. Give it a go :)

Collapse
 
denniswebdel profile image
dennisFS

Hi Muhammad,
Just checked your repo from my phone so could not try it myself but my guess is that in the client side in the auth.jsx component you are sending a request to a https URL... Try sending just to localhost or setup a proxy (example -> twilio.com/blog/react-app-with-nod...)...

Hope that helped!

Collapse
 
fuhadkalathingal profile image
Fuhad Kalathingal

thankyou bro its worked