StevenM
September 24, 2020, 5:02am
1
So I am building a project in node.js and creating a user registration form
Have all the form created and used a .php process as a guide.
I am using server connect form and not sure
But is there a Node.js set of instructions anywhere on how to create a form in node.js which then submits the contents to the database.
I have tried and not sure it is the same process as .php as there are a few differences and on submission I am getting a 500 error.
If there is an example or guide anywhere some one can point me to? I just need to check to see what I may be doing wrong
Teodor
September 24, 2020, 5:11am
2
The process is the same for all server models, there is nothing NodeJS specific. If you see an error 500, then please check the exact error message returned:
You can easily debug issues related to server-side processing such as - form not sending email, record not inserting or updating, query not showing data etc.
The first thing you need to do is to open the server connect settings. They are located in the Workflows Panel > Server Actions:
[Screenshot 2021-09-27 at 10.02.35]
And enable the Debug Mode:
[Screenshot 2021-09-27 at 10.03.08]
Click Save:
[Screenshot 2021-09-27 at 10.03.26]
In your browser, open the Developer tools. If you don’t k…
StevenM
September 24, 2020, 5:38am
3
Thanks @Teodor seems to be related to my database connection issues.
StevenM
September 24, 2020, 6:16am
4
What would this error mean?
It looks like there is an issues accessing port:172.23.0.2:9906
Which is the database port but I have all the settings and have the database working as expected on that port with the database connection as the first server action.
{status: "500", code: "ECONNREFUSED", message: "connect ECONNREFUSED 172.23.0.2:9906",…}
code: "ECONNREFUSED"
message: "connect ECONNREFUSED 172.23.0.2:9906"
stack: "Error: connect ECONNREFUSED 172.23.0.2:9906↵ at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)"
status: "500"