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:3912) [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)
Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
BadRequestError: request aborted
    at IncomingMessage.onAborted (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\raw-body\index.js:231:10)
    at IncomingMessage.emit (node:events:390:28)
    at IncomingMessage._destroy (node:_http_incoming:179:10)
    at _destroy (node:internal/streams/destroy:102:25)
    at IncomingMessage.destroy (node:internal/streams/destroy:64:5)
    at abortIncoming (node:_http_server:596:9)
    at socketOnClose (node:_http_server:590:3)
    at Socket.emit (node:events:402:35)
    at Pipe.<anonymous> (node:net:687:12)
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 (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:125:13)
    at Object.wrappedValidations.<computed> [as ip] (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:324:22)
    at Object.keyGenerator (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:577:20)
    at C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:629:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:611:5 {
  code: 'ERR_ERL_UNDEFINED_IP_ADDRESS',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNDEFINED_IP_ADDRESS/'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:166:13)
    at Object.wrappedValidations.<computed> [as xForwardedForHeader] (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:324:22)
    at Object.keyGenerator (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:579:20)
    at C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:629:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\express-rate-limit\dist\index.cjs:611:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
BadRequestError: request aborted
    at IncomingMessage.onAborted (C:\inetpub\$PROD\www.mapsted.com\serverB\node_modules\raw-body\index.js:231:10)
    at IncomingMessage.emit (node:events:390:28)
    at IncomingMessage._destroy (node:_http_incoming:179:10)
    at _destroy (node:internal/streams/destroy:102:25)
    at IncomingMessage.destroy (node:internal/streams/destroy:64:5)
    at abortIncoming (node:_http_server:596:9)
    at socketOnClose (node:_http_server:590:3)
    at Socket.emit (node:events:402:35)
    at Pipe.<anonymous> (node:net:687:12)