79835876

Date: 2025-12-02 12:47:22
Score: 1
Natty:
Report link

I got it working by specifying sslmode=require in the connection string.

var pw = encodeURIComponent("##pw##")
const pool = new Pool({connectionString: `postgresql://username:${pw}@server.postgres.database.azure.com:5432/dbname?sslmode=require`})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mikibok