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-01 05:33: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: fa781c08-5999-4ba0-bb20-f643c6013b00 Correlation ID: 937d260b-e1a3-441b-97e8-f2df4c76a597 Timestamp: 2026-03-01 05:33:30Z - Correlation ID: 937d260b-e1a3-441b-97e8-f2df4c76a597 - Trace ID: fa781c08-5999-4ba0-bb20-f643c6013b00
(node:3656) [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-01 05:33: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: 251d5947-9b19-4e9b-9b32-3719495f1800 Correlation ID: c32731db-f50e-43b4-967f-269a6092a265 Timestamp: 2026-03-01 05:33:30Z - Correlation ID: c32731db-f50e-43b4-967f-269a6092a265 - Trace ID: 251d5947-9b19-4e9b-9b32-3719495f1800
Error getting the secret: invalid_client: 7000222 - [2026-03-01 05:33: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: ad53aa04-8048-4198-a942-664a935a4d00 Correlation ID: fe9820a1-5a9a-4695-87bb-1f968d194a38 Timestamp: 2026-03-01 05:33:30Z - Correlation ID: fe9820a1-5a9a-4695-87bb-1f968d194a38 - Trace ID: ad53aa04-8048-4198-a942-664a935a4d00
Error getting the secret: invalid_client: 7000222 - [2026-03-01 05:33: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: e5e22de0-d31d-4370-84f8-f0aa7a525e00 Correlation ID: 88fbd26a-ff85-4179-a963-4f3db1981c4e Timestamp: 2026-03-01 05:33:31Z - Correlation ID: 88fbd26a-ff85-4179-a963-4f3db1981c4e - Trace ID: e5e22de0-d31d-4370-84f8-f0aa7a525e00
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)