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:
(node:2868) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Website\NodejsSwagger\express\node_modules\swagger-ui-express\package.json' of './lib/index.js'. Please either fix that or report it to the module author (Use `node --trace-deprecation ...` to show where the warning was created) (node:2868) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (node:2868) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead. (node:2868) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead. (node:2868) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead. Application has thrown an uncaught exception and is terminated: TypeError: Cannot read properties of null (reading 'toLowerCase') at C:\Website\NodejsSwagger\express\index.js:410:75 at C:\Website\NodejsSwagger\express\api\mysql.js:31:17 at Query._callback (C:\Website\NodejsSwagger\express\api\mysql.js:69:28) at Query.Sequence.end (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\protocol\sequences\Sequence.js:88:24) at Query._handleFinalResultPacket (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\protocol\sequences\Query.js:139:8) at Query.EofPacket (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\protocol\sequences\Query.js:123:8) at Protocol._parsePacket (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\protocol\Protocol.js:279:23) at Parser.write (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\protocol\Parser.js:76:12) at Protocol.write (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\protocol\Protocol.js:39:16) at Socket.<anonymous> (C:\Website\NodejsSwagger\express\node_modules\mysql\lib\Connection.js:103:28)