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-03 13:05:05Z]: 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: 568f796c-ccb6-4d2b-8ddf-c98179894900 Correlation ID: 2667698d-7d9a-4216-b44b-a9b1b5b0cc86 Timestamp: 2026-05-03 13:05:05Z - Correlation ID: 2667698d-7d9a-4216-b44b-a9b1b5b0cc86 - Trace ID: 568f796c-ccb6-4d2b-8ddf-c98179894900
(node:1524) [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-03 13:05:05Z]: 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: 0dd6c182-0cd5-4962-9567-93ef30a04800 Correlation ID: 17a386fb-661f-46f1-a3a5-bb5ca224b795 Timestamp: 2026-05-03 13:05:05Z - Correlation ID: 17a386fb-661f-46f1-a3a5-bb5ca224b795 - Trace ID: 0dd6c182-0cd5-4962-9567-93ef30a04800
Error getting the secret: invalid_client: 7000222 - [2026-05-03 13:05:06Z]: 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: 6f702d60-4577-4518-a484-fcb5fec13500 Correlation ID: 496c0d06-34e5-4c2e-b5f2-85b87e2c0f43 Timestamp: 2026-05-03 13:05:06Z - Correlation ID: 496c0d06-34e5-4c2e-b5f2-85b87e2c0f43 - Trace ID: 6f702d60-4577-4518-a484-fcb5fec13500
Error getting the secret: invalid_client: 7000222 - [2026-05-03 13:05:06Z]: 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: 2cb42ffd-a655-4f9e-8a90-5d5c18a05800 Correlation ID: 44688125-5c34-44b8-9760-39b4deaa85b2 Timestamp: 2026-05-03 13:05:06Z - Correlation ID: 44688125-5c34-44b8-9760-39b4deaa85b2 - Trace ID: 2cb42ffd-a655-4f9e-8a90-5d5c18a05800
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)