iisnode encountered an error when processing the request.
HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
DIMS listen target: 3000
(node:23100) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Server start failed: _DrizzleQueryError: Failed query: ALTER TABLE users ADD COLUMN IF NOT EXISTS is_district_pharmacist BOOLEAN NOT NULL DEFAULT FALSE
params:
at NodePgPreparedQuery.queryWithCache (C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:41454:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ensureDrugDistributionColumns (C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:89949:3)
at async startServer (C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:89960:3) {
query: 'ALTER TABLE users ADD COLUMN IF NOT EXISTS is_district_pharmacist BOOLEAN NOT NULL DEFAULT FALSE',
params: [],
cause: Error: connect ECONNREFUSED ::1:5432
at C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:32692:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:41737:24
at async NodePgPreparedQuery.queryWithCache (C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:41452:20)
at async ensureDrugDistributionColumns (C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:89949:3)
at async startServer (C:\Inetpub\vhosts\billing.softjo.com\dimsahd.up.gov.in\dist\index.js:89960:3) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432
}
}