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-03-27 23:48:07Z]: 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: f3ad78f7-c8f3-44e2-9cd3-3d7f15364400 Correlation ID: 6b5665eb-fee3-4470-8fd5-7c9cc15ba51c Timestamp: 2026-03-27 23:48:07Z - Correlation ID: 6b5665eb-fee3-4470-8fd5-7c9cc15ba51c - Trace ID: f3ad78f7-c8f3-44e2-9cd3-3d7f15364400
(node:512) [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-03-27 23:48:08Z]: 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: 13b0de2e-7da8-4efc-90da-69051b084500 Correlation ID: 87ccc9b3-c728-46c7-b45f-a4249669801d Timestamp: 2026-03-27 23:48:08Z - Correlation ID: 87ccc9b3-c728-46c7-b45f-a4249669801d - Trace ID: 13b0de2e-7da8-4efc-90da-69051b084500
Error getting the secret: invalid_client: 7000222 - [2026-03-27 23:48:08Z]: 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: 3c236fbe-ea3f-4e79-8eef-0d8b75a50b00 Correlation ID: 778e537c-59aa-45dd-b0a2-0c292596c204 Timestamp: 2026-03-27 23:48:08Z - Correlation ID: 778e537c-59aa-45dd-b0a2-0c292596c204 - Trace ID: 3c236fbe-ea3f-4e79-8eef-0d8b75a50b00
Error getting the secret: invalid_client: 7000222 - [2026-03-27 23:48:08Z]: 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: a29898f5-15a0-4757-b52d-c6860ab03e00 Correlation ID: 85fc07b9-9537-4c1f-8de7-c01315fa44e9 Timestamp: 2026-03-27 23:48:08Z - Correlation ID: 85fc07b9-9537-4c1f-8de7-c01315fa44e9 - Trace ID: a29898f5-15a0-4757-b52d-c6860ab03e00
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)