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-02-28 23:03:47Z]: 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: 9d15fddb-51fd-4d53-a6f3-cd3fd87a3b00 Correlation ID: e5f75c6d-2774-47c1-bb33-850943718c16 Timestamp: 2026-02-28 23:03:47Z - Correlation ID: e5f75c6d-2774-47c1-bb33-850943718c16 - Trace ID: 9d15fddb-51fd-4d53-a6f3-cd3fd87a3b00
(node:5124) [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-02-28 23:03:47Z]: 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: 2ef6df9d-8240-4ca8-b3f2-7852f6a25c00 Correlation ID: 38937128-f549-470f-a831-9f2a6655dfc5 Timestamp: 2026-02-28 23:03:47Z - Correlation ID: 38937128-f549-470f-a831-9f2a6655dfc5 - Trace ID: 2ef6df9d-8240-4ca8-b3f2-7852f6a25c00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 23:03:47Z]: 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: fb163887-bd97-42b5-b74d-d34154395800 Correlation ID: 0ac8d0e6-7fb2-4714-8e31-7b319189761e Timestamp: 2026-02-28 23:03:47Z - Correlation ID: 0ac8d0e6-7fb2-4714-8e31-7b319189761e - Trace ID: fb163887-bd97-42b5-b74d-d34154395800
Error getting the secret: invalid_client: 7000222 - [2026-02-28 23:03:47Z]: 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: 2ef6df9d-8240-4ca8-b3f2-7852fda25c00 Correlation ID: 52db87c3-f844-4bd8-893f-af687304bc2f Timestamp: 2026-02-28 23:03:47Z - Correlation ID: 52db87c3-f844-4bd8-893f-af687304bc2f - Trace ID: 2ef6df9d-8240-4ca8-b3f2-7852fda25c00
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)