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-02 07:23:27Z]: 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: f8cb2d9e-c173-49c3-912f-be8f02d05300 Correlation ID: 9b4df655-05c2-493a-9c4f-75d49d5cd2aa Timestamp: 2026-05-02 07:23:27Z - Correlation ID: 9b4df655-05c2-493a-9c4f-75d49d5cd2aa - Trace ID: f8cb2d9e-c173-49c3-912f-be8f02d05300
(node:2068) [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-02 07:23:27Z]: 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: 6ccb4f34-f203-4110-97ea-7aa8b9e22e00 Correlation ID: 7b06b9b3-ef34-42e3-906a-30a30bf4d5af Timestamp: 2026-05-02 07:23:27Z - Correlation ID: 7b06b9b3-ef34-42e3-906a-30a30bf4d5af - Trace ID: 6ccb4f34-f203-4110-97ea-7aa8b9e22e00
Error getting the secret: invalid_client: 7000222 - [2026-05-02 07:23:27Z]: 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: f8cb2d9e-c173-49c3-912f-be8f0cd05300 Correlation ID: 598b5199-0161-4317-9f6e-e5e2b196769a Timestamp: 2026-05-02 07:23:27Z - Correlation ID: 598b5199-0161-4317-9f6e-e5e2b196769a - Trace ID: f8cb2d9e-c173-49c3-912f-be8f0cd05300
Error getting the secret: invalid_client: 7000222 - [2026-05-02 07:23:28Z]: 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: e68a49af-7616-4444-9342-87c995623d00 Correlation ID: d05fae81-c4dc-41c1-821b-bcda3c8d3535 Timestamp: 2026-05-02 07:23:28Z - Correlation ID: d05fae81-c4dc-41c1-821b-bcda3c8d3535 - Trace ID: e68a49af-7616-4444-9342-87c995623d00
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)