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:8552) [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
[
  {
    message: 'Field "posts" argument "where" requires type Int, found NaN.',
    extensions: { category: 'graphql' },
    locations: [ [Object] ]
  }
]
The requested resource isn't a valid image for /img/home/home-content-img3g.jpg received text/html; charset=utf-8
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\serverA\node_modules\express-rate-limit\dist\index.cjs:125:13)
    at Object.wrappedValidations.<computed> [as ip] (C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\express-rate-limit\dist\index.cjs:324:22)
    at Object.keyGenerator (C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\express-rate-limit\dist\index.cjs:577:20)
    at C:\inetpub\$PROD\www.mapsted.com\serverA\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\serverA\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\serverA\node_modules\express-rate-limit\dist\index.cjs:166:13)
    at Object.wrappedValidations.<computed> [as xForwardedForHeader] (C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\express-rate-limit\dist\index.cjs:324:22)
    at Object.keyGenerator (C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\express-rate-limit\dist\index.cjs:579:20)
    at C:\inetpub\$PROD\www.mapsted.com\serverA\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\serverA\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/'
}