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-22 14:00:16Z]: 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: 57f6faf8-37b1-4bb6-9a5d-e08e00b11900 Correlation ID: 353c9bae-a739-4c5c-9529-c71f23fa2f49 Timestamp: 2026-03-22 14:00:16Z - Correlation ID: 353c9bae-a739-4c5c-9529-c71f23fa2f49 - Trace ID: 57f6faf8-37b1-4bb6-9a5d-e08e00b11900
(node:1884) [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-22 14:00:16Z]: 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: 6f9b1dfa-d5d8-46a4-a7e2-9dfef75e1700 Correlation ID: 0ed35b80-79bb-42e9-80ea-0a5e73cf6b60 Timestamp: 2026-03-22 14:00:16Z - Correlation ID: 0ed35b80-79bb-42e9-80ea-0a5e73cf6b60 - Trace ID: 6f9b1dfa-d5d8-46a4-a7e2-9dfef75e1700
Error getting the secret: invalid_client: 7000222 - [2026-03-22 14:00:17Z]: 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: 35383685-a474-4c2a-a1b8-ee183b3f1900 Correlation ID: 81e3d933-eea7-4561-91b4-021574682333 Timestamp: 2026-03-22 14:00:17Z - Correlation ID: 81e3d933-eea7-4561-91b4-021574682333 - Trace ID: 35383685-a474-4c2a-a1b8-ee183b3f1900
Error getting the secret: invalid_client: 7000222 - [2026-03-22 14:00:17Z]: 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: 784dc7a8-4f83-4930-a05c-cff50fcc2a00 Correlation ID: ed7a01e2-bb47-49f8-8f6e-01cbb80f0f48 Timestamp: 2026-03-22 14:00:17Z - Correlation ID: ed7a01e2-bb47-49f8-8f6e-01cbb80f0f48 - Trace ID: 784dc7a8-4f83-4930-a05c-cff50fcc2a00
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)