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:

(node:2596) [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)
    message: 'Field "posts" argument "where" requires type Int, found NaN.',
    extensions: { category: 'graphql' },
    locations: [ [Object] ]
Application has thrown an uncaught exception and is terminated:
Error: Failed to fetch API
    at fetchAPI (C:\inetpub\$PROD\www.mapsted.com\serverA\.next\server\chunks\4400.js:100:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async getAllPosts (C:\inetpub\$PROD\www.mapsted.com\serverA\.next\server\chunks\4400.js:138:18)
    at async getServerSideProps (C:\inetpub\$PROD\www.mapsted.com\serverA\.next\server\pages\blog\page\[pageNumber].js:246:26)
    at async Object.renderToHTML (C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\next\dist\server\render.js:479:20)
    at async doRender (C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\next\dist\server\next-server.js:1389:38)
    at async C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\next\dist\server\next-server.js:1484:28
    at async C:\inetpub\$PROD\www.mapsted.com\serverA\node_modules\next\dist\server\response-cache.js:63:36