• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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