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-01-17 01:29:40Z]: 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: 3b2944c1-eb9a-4702-b586-21ebd0900300 Correlation ID: 37a5aab0-11ff-4a7c-aa60-0c5247c5eef1 Timestamp: 2026-01-17 01:29:40Z - Correlation ID: 37a5aab0-11ff-4a7c-aa60-0c5247c5eef1 - Trace ID: 3b2944c1-eb9a-4702-b586-21ebd0900300
(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-01-17 01:29:41Z]: 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: 1206a65b-86e4-46d2-b8cb-7637327b0300 Correlation ID: 6f9b2343-a2d1-469d-b300-2f34085b26fe Timestamp: 2026-01-17 01:29:41Z - Correlation ID: 6f9b2343-a2d1-469d-b300-2f34085b26fe - Trace ID: 1206a65b-86e4-46d2-b8cb-7637327b0300
Error getting the secret: invalid_client: 7000222 - [2026-01-17 01:29:41Z]: 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: defac10b-89fa-48df-908e-5a7296d50400 Correlation ID: fb38f52a-5eec-42fc-831f-c6947677b5d2 Timestamp: 2026-01-17 01:29:41Z - Correlation ID: fb38f52a-5eec-42fc-831f-c6947677b5d2 - Trace ID: defac10b-89fa-48df-908e-5a7296d50400
Error getting the secret: invalid_client: 7000222 - [2026-01-17 01:29:41Z]: 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: 76065969-5465-4890-ae2c-daf13e322200 Correlation ID: 5e03b3c1-02b6-4c97-b71c-92dd98ff3109 Timestamp: 2026-01-17 01:29:41Z - Correlation ID: 5e03b3c1-02b6-4c97-b71c-92dd98ff3109 - Trace ID: 76065969-5465-4890-ae2c-daf13e322200
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)