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

100
Views
NodeJs Server on production

So i made a simply express server connected with a database. On localhost it connects with database perfectly but on deployment it shows an error like that

{"code":"ESOCKET","originalError":{"code":"ESOCKET"},"name":"ConnectionError"}

On sql Server everything is set perfectly.

my configuration looks like that:

const config={
    user: 'xxxxx',
    password: 'xxxxxxx',
    server: 'public_ip_from_sql', 
    database: 'data_base',
    debug:true,
    port: 1433,
    client:"mssql",
    options: {
        encrypt: false,
        enableArithAbord:true,
        trustServerCertificate: true,
        validateBulkLoadParameters:true,
        },
    connectionTimeout:150000,
    pool:{
        max:10,
        min:0,
        idleTimeoutMillis:3000
    }
}

I am hosting it on Plesk nginx server. i havent find any solution to solve this problem.

about 4 years ago · Juan Pablo Isaza
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!