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-21 03:59:20Z]: 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: e6949d55-6aa8-47b7-abbd-3340cbc20200 Correlation ID: 921f59f0-fc07-4182-9d99-52e5397a1a44 Timestamp: 2026-03-21 03:59:20Z - Correlation ID: 921f59f0-fc07-4182-9d99-52e5397a1a44 - Trace ID: e6949d55-6aa8-47b7-abbd-3340cbc20200
(node:4788) [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-21 03:59:21Z]: 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: 5ee41753-5083-4dbd-b0f9-ba072e0a0200 Correlation ID: 56f685c4-529f-4dd7-abf0-fdf0a56c1059 Timestamp: 2026-03-21 03:59:21Z - Correlation ID: 56f685c4-529f-4dd7-abf0-fdf0a56c1059 - Trace ID: 5ee41753-5083-4dbd-b0f9-ba072e0a0200
Error getting the secret: invalid_client: 7000222 - [2026-03-21 03:59:21Z]: 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: f36b1691-5522-4f02-a40a-8cd2d4110300 Correlation ID: a5eef252-b9cb-4a5f-bb6f-4277a2f49f0f Timestamp: 2026-03-21 03:59:21Z - Correlation ID: a5eef252-b9cb-4a5f-bb6f-4277a2f49f0f - Trace ID: f36b1691-5522-4f02-a40a-8cd2d4110300
Error getting the secret: invalid_client: 7000222 - [2026-03-21 03:59:21Z]: 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: 1d8227f3-9901-40c3-9099-32f2a9b70300 Correlation ID: 5c39a237-6273-4e9d-ba40-d607bf6fc948 Timestamp: 2026-03-21 03:59:21Z - Correlation ID: 5c39a237-6273-4e9d-ba40-d607bf6fc948 - Trace ID: 1d8227f3-9901-40c3-9099-32f2a9b70300
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)