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 13:24:50Z]: 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: 1db1a3c1-5439-40bf-9494-605f3ba51600 Correlation ID: efee46fb-6419-4cdf-a3a5-12544eb8a8e0 Timestamp: 2026-05-16 13:24:50Z - Correlation ID: efee46fb-6419-4cdf-a3a5-12544eb8a8e0 - Trace ID: 1db1a3c1-5439-40bf-9494-605f3ba51600
(node:4704) [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 13:24:51Z]: 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: d4ac6adb-a370-4446-86c9-b9aaa00c0300 Correlation ID: 35d6c7be-afe5-483d-a0c8-6348fb9596bd Timestamp: 2026-05-16 13:24:51Z - Correlation ID: 35d6c7be-afe5-483d-a0c8-6348fb9596bd - Trace ID: d4ac6adb-a370-4446-86c9-b9aaa00c0300
Error getting the secret: invalid_client: 7000222 - [2026-05-16 13:24:51Z]: 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: e0223a6a-01f2-4b4f-a53f-4279ac7b0100 Correlation ID: 1d545991-f154-410d-bc04-c46c42dff2a5 Timestamp: 2026-05-16 13:24:51Z - Correlation ID: 1d545991-f154-410d-bc04-c46c42dff2a5 - Trace ID: e0223a6a-01f2-4b4f-a53f-4279ac7b0100
Error getting the secret: invalid_client: 7000222 - [2026-05-16 13:24:51Z]: 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: cb183c28-703b-41eb-862c-be90d4860200 Correlation ID: 957933a0-18e5-45db-b70b-ed3b0021eb28 Timestamp: 2026-05-16 13:24:51Z - Correlation ID: 957933a0-18e5-45db-b70b-ed3b0021eb28 - Trace ID: cb183c28-703b-41eb-862c-be90d4860200
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)