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-05-16 11:31:23Z]: 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: 62106e49-d483-4420-85b7-84c1ee2e0200 Correlation ID: 814056ab-e64d-42f6-8a84-81b670f42169 Timestamp: 2026-05-16 11:31:23Z - Correlation ID: 814056ab-e64d-42f6-8a84-81b670f42169 - Trace ID: 62106e49-d483-4420-85b7-84c1ee2e0200
(node:6520) [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-05-16 11:31:24Z]: 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: 42babb84-c7a4-4154-80e0-0c319a550100 Correlation ID: 5a416d22-daca-4139-8655-2f0a20637678 Timestamp: 2026-05-16 11:31:24Z - Correlation ID: 5a416d22-daca-4139-8655-2f0a20637678 - Trace ID: 42babb84-c7a4-4154-80e0-0c319a550100
Error getting the secret: invalid_client: 7000222 - [2026-05-16 11:31:24Z]: 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: 1c67141c-7013-4f14-9f84-d34c57720100 Correlation ID: 9450e6f1-76bd-4537-b03d-fee8e1b6637a Timestamp: 2026-05-16 11:31:24Z - Correlation ID: 9450e6f1-76bd-4537-b03d-fee8e1b6637a - Trace ID: 1c67141c-7013-4f14-9f84-d34c57720100
Error getting the secret: invalid_client: 7000222 - [2026-05-16 11:31:24Z]: 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: 75aeb0c3-35bb-4c11-82fc-8c3bf1ed1400 Correlation ID: ba4026fb-bd83-4270-9bf9-90659dc1d839 Timestamp: 2026-05-16 11:31:24Z - Correlation ID: ba4026fb-bd83-4270-9bf9-90659dc1d839 - Trace ID: 75aeb0c3-35bb-4c11-82fc-8c3bf1ed1400
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)