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:10584) [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)
ValidationError: An undefined 'request.ip' was detected. This might indicate a misconfiguration or the connection being destroyed prematurely. See https://express-rate-limit.github.io/ERR_ERL_UNDEFINED_IP_ADDRESS/ for more information.
    at Object.ip (file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:116:13)
    at wrappedValidations.<computed> [as ip] (file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:369:22)
    at Object.keyGenerator (file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:628:20)
    at file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:682:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:663:5 {
  code: 'ERR_ERL_UNDEFINED_IP_ADDRESS',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNDEFINED_IP_ADDRESS/'
}
ValidationError: The Express 'trust proxy' setting is true, which allows anyone to trivially bypass IP-based rate limiting. See https://express-rate-limit.github.io/ERR_ERL_PERMISSIVE_TRUST_PROXY/ for more information.
    at Object.trustProxy (file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:139:13)
    at wrappedValidations.<computed> [as trustProxy] (file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:369:22)
    at Object.keyGenerator (file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:629:20)
    at file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:682:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/web/AIRadioBasic/node_modules/express-rate-limit/dist/index.mjs:663:5 {
  code: 'ERR_ERL_PERMISSIVE_TRUST_PROXY',
  help: 'https://express-rate-limit.github.io/ERR_ERL_PERMISSIVE_TRUST_PROXY/'
}
Application has thrown an uncaught exception and is terminated:
Error: EPERM: operation not permitted, open 'C:\web\AIRadioBasic\data\history\a2.json'