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-06 01:58:38Z]: 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: daecd57b-b2cb-4509-b20b-e7ff67c20500 Correlation ID: 0342b41a-ed35-49c7-87c4-fef542ab55e0 Timestamp: 2026-05-06 01:58:38Z - Correlation ID: 0342b41a-ed35-49c7-87c4-fef542ab55e0 - Trace ID: daecd57b-b2cb-4509-b20b-e7ff67c20500
(node:4820) [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-06 01:58:38Z]: 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: 76bc6ee8-0236-4e2b-a167-b5db7e760b00 Correlation ID: 25757e6b-2aee-4545-8a4f-939244bda500 Timestamp: 2026-05-06 01:58:38Z - Correlation ID: 25757e6b-2aee-4545-8a4f-939244bda500 - Trace ID: 76bc6ee8-0236-4e2b-a167-b5db7e760b00
Error getting the secret: invalid_client: 7000222 - [2026-05-06 01:58:39Z]: 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: 9cb242b1-363a-4cc3-aa76-87c76dac0800 Correlation ID: 87bd33d8-c602-4748-943c-25642cab34ba Timestamp: 2026-05-06 01:58:39Z - Correlation ID: 87bd33d8-c602-4748-943c-25642cab34ba - Trace ID: 9cb242b1-363a-4cc3-aa76-87c76dac0800
Error getting the secret: invalid_client: 7000222 - [2026-05-06 01:58:39Z]: 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: daecd57b-b2cb-4509-b20b-e7ff7ac20500 Correlation ID: 9fc29162-6f41-46c2-86da-c8c5838e605f Timestamp: 2026-05-06 01:58:39Z - Correlation ID: 9fc29162-6f41-46c2-86da-c8c5838e605f - Trace ID: daecd57b-b2cb-4509-b20b-e7ff7ac20500
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)