iisnode encountered an error when processing the request.

HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
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:

[ERROR 2026-04-24 00:02:30.663] (main) (node:9496) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[ERROR 2026-04-24 00:02:30.671] (main) (node:9496) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[ERROR 2026-04-24 00:02:30.882] (main) ServerBase.PGP.error: {"length":204,"name":"error","severity":"ERROR","code":"42501","position":"29","file":"D:\\a\\postgresql-packaging-foundation\\postgresql-packaging-foundation\\postgresql-13.21\\src\\backend\\catalog\\aclchk.c","line":"3471","routine":"aclcheck_error","query":"SELECT \"name\", \"actif\" FROM admin.modules;"} query: {"query":"SELECT \"name\", \"actif\" FROM admin.modules;"}
[ERROR 2026-04-24 00:02:30.887] (main) permission denied for schema admin:error: permission denied for schema admin
    at Parser.parseErrorMessage (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:285:98)
    at Parser.handlePacket (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:122:29)
    at Parser.parse (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:35:38)
    at Socket.<anonymous> (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\index.js:11:42)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
[ERROR 2026-04-24 00:02:30.888] (main) permission denied for schema admin:error: permission denied for schema admin
    at Parser.parseErrorMessage (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:285:98)
    at Parser.handlePacket (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:122:29)
    at Parser.parse (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:35:38)
    at Socket.<anonymous> (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\index.js:11:42)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
[ERROR 2026-04-24 00:02:31.226] (main) ServerBase.PGP.error: {"length":204,"name":"error","severity":"ERROR","code":"42501","position":"13","file":"D:\\a\\postgresql-packaging-foundation\\postgresql-packaging-foundation\\postgresql-13.21\\src\\backend\\catalog\\aclchk.c","line":"3471","routine":"aclcheck_error","query":"INSERT INTO admin.modules (name, actif) VALUES ('dao', 'true')"} query: {"query":"INSERT INTO admin.modules (name, actif) VALUES ('dao', 'true')"}
[ERROR 2026-04-24 00:02:31.228] (main) permission denied for schema admin:error: permission denied for schema admin
    at Parser.parseErrorMessage (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:285:98)
    at Parser.handlePacket (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:122:29)
    at Parser.parse (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:35:38)
    at Socket.<anonymous> (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\index.js:11:42)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
[ERROR 2026-04-24 00:02:31.229] (main) Application has thrown an uncaught exception and is terminated:
error: permission denied for schema admin
    at Parser.parseErrorMessage (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:285:98)
    at Parser.handlePacket (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:122:29)
    at Parser.parse (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\parser.js:35:38)
    at Socket.<anonymous> (F:\wwwroot\PRE_FLKEXTRANET\site\node_modules\pg-protocol\dist\index.js:11:42)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)