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 - [2026-12-01 12:40:26Z]: 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: 0d9e8fd4-b39e-4861-9b06-ed18b4e17d00 Correlation ID: 6e3fd173-b7ab-4dd7-afd2-2cde6c85d20a Timestamp: 2026-12-01 12:40:26Z - Correlation ID: 6e3fd173-b7ab-4dd7-afd2-2cde6c85d20a - Trace ID: 0d9e8fd4-b39e-4861-9b06-ed18b4e17d00
(node:6268) [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)
Error getting the secret: invalid_client: 7000222 - [2026-12-01 12:40:26Z]: 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: 304ec1ef-9328-4407-ad4f-e6add67d7400 Correlation ID: 47910ec4-2df0-4ffd-a995-b4e48184f96e Timestamp: 2026-12-01 12:40:26Z - Correlation ID: 47910ec4-2df0-4ffd-a995-b4e48184f96e - Trace ID: 304ec1ef-9328-4407-ad4f-e6add67d7400
Error getting the secret: invalid_client: 7000222 - [2026-12-01 12:40:27Z]: 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: 0d9e8fd4-b39e-4861-9b06-ed18dfe17d00 Correlation ID: 08a2c11f-3b47-4676-bf10-30d010ce6c6b Timestamp: 2026-12-01 12:40:27Z - Correlation ID: 08a2c11f-3b47-4676-bf10-30d010ce6c6b - Trace ID: 0d9e8fd4-b39e-4861-9b06-ed18dfe17d00
Error getting the secret: invalid_client: 7000222 - [2026-12-01 12:40:27Z]: 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: 321daf47-7e8f-4bb0-b496-0ebe069d7200 Correlation ID: 34ba9410-3dfd-4ef5-ba31-c9f0fc114209 Timestamp: 2026-12-01 12:40:27Z - Correlation ID: 34ba9410-3dfd-4ef5-ba31-c9f0fc114209 - Trace ID: 321daf47-7e8f-4bb0-b496-0ebe069d7200
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'cosdb')
at C:\stop_order_dev\server.js:25:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)