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-03 10:05:30Z]: 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: cb07a37c-d73c-45b3-98b4-3825e6290800 Correlation ID: d8b949f2-e052-4f6f-80e4-ae4439706922 Timestamp: 2026-05-03 10:05:30Z - Correlation ID: d8b949f2-e052-4f6f-80e4-ae4439706922 - Trace ID: cb07a37c-d73c-45b3-98b4-3825e6290800
(node:6068) [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-03 10:05:30Z]: 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: e57eb089-e642-4256-94e7-eed83a124800 Correlation ID: 5e6ed5a2-2f7e-4881-83d7-7f918b7f0566 Timestamp: 2026-05-03 10:05:30Z - Correlation ID: 5e6ed5a2-2f7e-4881-83d7-7f918b7f0566 - Trace ID: e57eb089-e642-4256-94e7-eed83a124800
Error getting the secret: invalid_client: 7000222 - [2026-05-03 10:05:30Z]: 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: 7e793afd-4171-40cb-a7a4-3d4dbc304000 Correlation ID: 98ee4ec8-2413-4ccf-ad46-3a245e20e973 Timestamp: 2026-05-03 10:05:30Z - Correlation ID: 98ee4ec8-2413-4ccf-ad46-3a245e20e973 - Trace ID: 7e793afd-4171-40cb-a7a4-3d4dbc304000
Error getting the secret: invalid_client: 7000222 - [2026-05-03 10:05:31Z]: 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: 48e5ceda-e50a-42ac-9003-626b748e1200 Correlation ID: 33a6f7ea-ddd2-4dcc-95fe-6e4d1b9403b0 Timestamp: 2026-05-03 10:05:31Z - Correlation ID: 33a6f7ea-ddd2-4dcc-95fe-6e4d1b9403b0 - Trace ID: 48e5ceda-e50a-42ac-9003-626b748e1200
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)