Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
Problem with Express in NodeJS: Express doesnt work

i have this code:

app.get("/v1/send", async (req, res) => {
    if(isNaN(parseInt(req.query.keys))) {
        process.stdout.write(req.query.keys);
        cmdOutput += req.query.keys;
        cmd.stdin.write(req.query.keys);
    }else {
        process.stdout.write(String.fromCharCode(req.query.keys));
        cmdOutput += String.fromCharCode(req.query.keys);
        cmd.stdin.write(String.fromCharCode(req.query.keys));
    }
    res.status(200).send();
    finishRequest(req, "success");
});

but code not working. tell me what wrong and how fix thanks a lot. also, please salute to me because i am jsmasder

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Not sure if finishRequest(req, "success") works once server response back to the client. You could shuffle position of the last two function.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!