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-26 12:10:40Z]: 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: 43214b24-8602-4f4e-9198-f6e3369c1800 Correlation ID: 762f8387-5688-430a-a11f-52101050309a Timestamp: 2026-03-26 12:10:40Z - Correlation ID: 762f8387-5688-430a-a11f-52101050309a - Trace ID: 43214b24-8602-4f4e-9198-f6e3369c1800
(node:108) [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-26 12:10:40Z]: 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: 9035f9b3-f5c9-4edc-aa2c-3579f7951d00 Correlation ID: 115b9918-3f8a-436b-85c9-519dfcfe9526 Timestamp: 2026-03-26 12:10:40Z - Correlation ID: 115b9918-3f8a-436b-85c9-519dfcfe9526 - Trace ID: 9035f9b3-f5c9-4edc-aa2c-3579f7951d00
Error getting the secret: invalid_client: 7000222 - [2026-03-26 12:10:41Z]: 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: 6ba04a5c-417d-453a-8fb0-cdaf5c181d00 Correlation ID: f191cbf4-57e3-4e76-8104-daec4845c43c Timestamp: 2026-03-26 12:10:41Z - Correlation ID: f191cbf4-57e3-4e76-8104-daec4845c43c - Trace ID: 6ba04a5c-417d-453a-8fb0-cdaf5c181d00
Error getting the secret: invalid_client: 7000222 - [2026-03-26 12:10:41Z]: 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: cf3e6fb1-5d20-428f-94ff-0f29f0781600 Correlation ID: 0202a01d-9671-497f-ba9b-576ba9385c25 Timestamp: 2026-03-26 12:10:41Z - Correlation ID: 0202a01d-9671-497f-ba9b-576ba9385c25 - Trace ID: cf3e6fb1-5d20-428f-94ff-0f29f0781600
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)