These are my project options, I don't have a database so it's all pretty simplified
Maybe a very silly question, but are you publishing to the development or production target, you showed the screenshot of the production target, however on the very bottom left of your screen it shows that you are currently working in the development target?
Please show a screenshot of your cPanel file manager in the folder of your NodeJS project
I removed the reference to the server side data and now it seems to work.
There is definitely something in the app that is not working properly on the production environment while locally everything seems to work
Probably the source of the 500 errors.
You need to me much more specific re what is not working before anyone can help.
Error messages, screenshots etc
You're right, but in this case I didn't have much to share because in reality there were no visible errors.
Now everything seems to work even if I didn't understand the reason, there is only a small problem with sending emails.
I send with an external smtp to Orange do you know if on cpanel you have to configure some specific port to send the email?
{
"status": "500",
"code": "EAUTH",
"message": "Invalid login: 535 Incorrect authentication data",
"stack": "Error: Invalid login: 535 Incorrect authentication data\n at SMTPConnection._formatError (/home/brainpod/nodevenv/nodejsapp/18/lib/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)\n at SMTPConnection._actionAUTHComplete (/home/brainpod/nodevenv/nodejsapp/18/lib/node_modules/nodemailer/lib/smtp-connection/index.js:1586:34)\n at SMTPConnection.<anonymous> (/home/brainpod/nodevenv/nodejsapp/18/lib/node_modules/nodemailer/lib/smtp-connection/index.js:554:26)\n at SMTPConnection._processResponse (/home/brainpod/nodevenv/nodejsapp/18/lib/node_modules/nodemailer/lib/smtp-connection/index.js:991:20)\n at SMTPConnection._onData (/home/brainpod/nodevenv/nodejsapp/18/lib/node_modules/nodemailer/lib/smtp-connection/index.js:772:14)\n at SMTPConnection._onSocketData (/home/brainpod/nodevenv/nodejsapp/18/lib/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:517:28)\n at addChunk (node:internal/streams/readable:368:12)\n at readableAddChunk (node:internal/streams/readable:341:9)\n at Readable.push (node:internal/streams/readable:278:10)"
}
It would be nice if you can share some info, like what provider, and how is your config..
Seems like an auth issue, are credentials correctly setted on Wappler mailer?
Also consider to share different issues on separated topics
That looks like a incorrect SMTP configuration.
My gut feeling is you have a lot more code there than yilou have told us about.
WE NEED TO SEE CODE AND SCREENSHOTS.