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-03 21:54: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: c28962fe-f63f-4d3b-8e39-a57837a57200 Correlation ID: 5196b343-dc20-4fdc-8ba3-9a0f3cf468dc Timestamp: 2026-03-03 21:54:40Z - Correlation ID: 5196b343-dc20-4fdc-8ba3-9a0f3cf468dc - Trace ID: c28962fe-f63f-4d3b-8e39-a57837a57200
(node:292) [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-03 21:54: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: 0343a458-fd84-4089-ba37-e06e88771600 Correlation ID: 68e0d24f-a088-4a89-ae2c-d3c75f883709 Timestamp: 2026-03-03 21:54:40Z - Correlation ID: 68e0d24f-a088-4a89-ae2c-d3c75f883709 - Trace ID: 0343a458-fd84-4089-ba37-e06e88771600
Error getting the secret: invalid_client: 7000222 - [2026-03-03 21:54: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: aad0ff42-c6d8-48e6-bd84-d43e6a8f3300 Correlation ID: 5d3fd21e-b0ad-4014-b421-9662badd7722 Timestamp: 2026-03-03 21:54:40Z - Correlation ID: 5d3fd21e-b0ad-4014-b421-9662badd7722 - Trace ID: aad0ff42-c6d8-48e6-bd84-d43e6a8f3300
Error getting the secret: invalid_client: 7000222 - [2026-03-03 21:54: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: c28962fe-f63f-4d3b-8e39-a5783fa57200 Correlation ID: b063282f-d253-4ac5-a5fc-44f7bf327d02 Timestamp: 2026-03-03 21:54:40Z - Correlation ID: b063282f-d253-4ac5-a5fc-44f7bf327d02 - Trace ID: c28962fe-f63f-4d3b-8e39-a5783fa57200
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)