• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Incomplete response received from application NodeJS running on Plesk

niloufarpdk

New Pleskian
Server operating system version
centos
Plesk version and microupdate number
18.0.48
i have a controller that sends email with nodemailer. my app is running o plesk. when i run it in my localhost every thing is ok. but when i run it on host with plesk i get this error : Incomplete response received from application

my function :

```
submitInvoice = async (req, res, next) => {
try {
var transporter = mailer.createTransport({
host: process.env.mailhost,
port: 587,
auth: {
user: process.env.mailuser,
pass: process.env.mailPass,
},
tls: { rejectUnauthorized: false },
});

var mailOptions = {
from: process.env.mailuser,
to: process.env.reciever,
subject: "", // Subject line
// attachments: [{ filename: "new-form.xlsx", content: data }],
html:
"<!DOCTYPE html>" +
"<html><head><title>title </title>" +
"<style>" +
"body {background-color:#ffdd00;background-repeat:no-repeat;background-position:top left;background-attachment:fixed;}" +
"h2{font-family:Arial, sans-serif;color:#000000;background-color:#ffdd00;text-align:center;}" +
"p {text-align:center;font-family:Georgia, serif;font-size:19px;font-style:normal;font-weight:bold;color:#000000}" +
"</style>" +
"</head><body><div>" +
" <h2>فایل اکسل پیوست شد</h2>" +
"</div></body></html>",
};

await transporter.sendMail(mailOptions);

return res.render("client/Counseling");
} catch (err) {
next(err);
}
};
```
the out put of nodemailer is :

250 2.0.0 Ok: queued as 9A795414F662E

do you have any idea what the problem is ?
 
Hi, did you find the solution to the problem?

I've been trying for several days to deploy an express application on plesk but without success,

I always get this error :Incomplete response received from application with http code 502

I think the error comes from the database, but as the error doesn't give me any indication it's hard to know...

Does anyone have any ideas?


View attachment 26122View attachment 26121
View attachment 26123
 
Back
Top