iisnode encountered an error when processing the request.

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:

Wed, 20 Sep 2023 23:33:54 GMT body-parser deprecated undefined extended: provide extended option at app.js:45:17
(node:100) [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)
(node:100) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: January 12, 1931, _f: undefined, _strict: undefined, _locale: [object Object]
    at Function.createFromInputFallback (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:324:25)
    at configFromString (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:2550:19)
    at configFromInput (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:2993:13)
    at prepareConfig (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:2976:13)
    at createFromConfig (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:2943:44)
    at createLocalOrUTC (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:3037:16)
    at createLocal (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:3041:16)
    at Object.hooks [as moment] (C:\inetpub\wwwroot\shayripoint.com\node_modules\moment\moment.js:16:29)
    at eval (eval at compile (C:\inetpub\wwwroot\shayripoint.com\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:55:25)
    at Array.forEach (<anonymous>)
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot destructure property '_id' of '(intermediate value)' as it is null.
    at exports.getPostByCategory (C:\inetpub\wwwroot\shayripoint.com\controllers\memberController\post.controller.js:15:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)