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 getting the secret: invalid_client: 7000222 - [2025-12-28 10:54:53Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 494a9a1e-6555-4cfa-9d46-31147ca4b000 Correlation ID: cd3c8a52-50a7-4bae-bf94-fc380c8278b7 Timestamp: 2025-12-28 10:54:53Z - Correlation ID: cd3c8a52-50a7-4bae-bf94-fc380c8278b7 - Trace ID: 494a9a1e-6555-4cfa-9d46-31147ca4b000
(node:516) [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)
Application has thrown an uncaught exception and is terminated:
AuthenticationRequiredError: invalid_client: 7000222 - [2025-12-28 10:54:53Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 494a9a1e-6555-4cfa-9d46-31147ca4b000 Correlation ID: cd3c8a52-50a7-4bae-bf94-fc380c8278b7 Timestamp: 2025-12-28 10:54:53Z - Correlation ID: cd3c8a52-50a7-4bae-bf94-fc380c8278b7 - Trace ID: 494a9a1e-6555-4cfa-9d46-31147ca4b000
    at MsalClientSecret.handleError (C:\stop_order_dev\node_modules\@azure\identity\dist\index.js:473:16)
    at MsalClientSecret.doGetToken (C:\stop_order_dev\node_modules\@azure\identity\dist\index.js:3177:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.withSpan (C:\stop_order_dev\node_modules\@azure\core-tracing\dist\index.js:140:28)
    at async tryGetAccessToken (C:\stop_order_dev\node_modules\@azure\core-rest-pipeline\dist\index.js:1986:32)
    at async beginRefresh (C:\stop_order_dev\node_modules\@azure\core-rest-pipeline\dist\index.js:1994:17)
    at async Object.authorizeRequestOnChallenge (C:\stop_order_dev\node_modules\@azure\keyvault-secrets\dist\index.js:1233:29)
    at async Object.sendRequest (C:\stop_order_dev\node_modules\@azure\core-rest-pipeline\dist\index.js:2187:43)
    at async KeyVaultClient.sendOperationRequest (C:\stop_order_dev\node_modules\@azure\core-client\dist\index.js:1948:33)
    at async KeyVaultClient.sendOperationRequest (C:\stop_order_dev\node_modules\@azure\core-http-compat\dist\index.js:202:24)