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-30 22:47:39Z]: 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: 6dacfcb0-aa49-4b6d-8679-0cfa6c91ff00 Correlation ID: 6fcb4dc7-7c6d-4cc4-845a-8f21868c0046 Timestamp: 2025-12-30 22:47:39Z - Correlation ID: 6fcb4dc7-7c6d-4cc4-845a-8f21868c0046 - Trace ID: 6dacfcb0-aa49-4b6d-8679-0cfa6c91ff00
(node:1732) [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 - [2025-12-30 22:47:39Z]: 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: 1d46d5ad-9f46-4a62-825d-48c17deaf500 Correlation ID: f0d0c444-5950-481e-ba2e-006dc9e687a4 Timestamp: 2025-12-30 22:47:39Z - Correlation ID: f0d0c444-5950-481e-ba2e-006dc9e687a4 - Trace ID: 1d46d5ad-9f46-4a62-825d-48c17deaf500
Error getting the secret: invalid_client: 7000222 - [2025-12-30 22:47:39Z]: 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: f001620a-8533-461c-809f-cab9d2943501 Correlation ID: 8faba152-748e-4834-8d58-0437a28741ec Timestamp: 2025-12-30 22:47:39Z - Correlation ID: 8faba152-748e-4834-8d58-0437a28741ec - Trace ID: f001620a-8533-461c-809f-cab9d2943501
Error getting the secret: invalid_client: 7000222 - [2025-12-30 22:47:39Z]: 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: f001620a-8533-461c-809f-cab9d6943501 Correlation ID: a2cc3e6c-d6ed-4eab-97d4-8a6ca1c23548 Timestamp: 2025-12-30 22:47:39Z - Correlation ID: a2cc3e6c-d6ed-4eab-97d4-8a6ca1c23548 - Trace ID: f001620a-8533-461c-809f-cab9d6943501
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)