iisnode encountered an error when processing the request.
HRESULT: 0x6d HTTP status: 500 HTTP subStatus: 1013 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:
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"formToken":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"filename":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"email":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"referredBy":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"name":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"userId":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"userId":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"formId":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"entryId":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
(node:288452) [MONGOOSE] Warning: Duplicate schema index on {"entryId":1} found. This is often due to declaring an index using both "index: true" and "schema.index()". Please remove the duplicate index definition.
❌ Redis Error: Port should be >= 0 and < 65536. Received type number (NaN).
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN).
at lookupAndConnect (node:net:1330:5)
at Socket.connect (node:net:1285:5)
at connect (node:net:245:17)
at D:\Inetpub\vhosts\jbplacement.in\api.talk2forms.com\WebForm-Backend\node_modules\ioredis\built\connectors\StandaloneConnector.js:54:66
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_SOCKET_BAD_PORT'
}
Error: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.