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-28 15:10:25Z]: 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: 0dd01948-fc2a-44ae-b7a4-249f4dad0700 Correlation ID: 3293308b-87ab-47f9-ba3a-9802168b6766 Timestamp: 2026-03-28 15:10:25Z - Correlation ID: 3293308b-87ab-47f9-ba3a-9802168b6766 - Trace ID: 0dd01948-fc2a-44ae-b7a4-249f4dad0700
(node:4204) [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-28 15:10:25Z]: 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: 55e3cb4e-770c-4935-a057-359d6e0f0700 Correlation ID: c12f97b5-a218-4bc7-aea2-d85d770f94c7 Timestamp: 2026-03-28 15:10:25Z - Correlation ID: c12f97b5-a218-4bc7-aea2-d85d770f94c7 - Trace ID: 55e3cb4e-770c-4935-a057-359d6e0f0700
Error getting the secret: invalid_client: 7000222 - [2026-03-28 15:10:26Z]: 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: 60558009-a1e7-4bdb-b282-18d6a8a60400 Correlation ID: bcae412d-6956-4671-b08a-41887c117957 Timestamp: 2026-03-28 15:10:26Z - Correlation ID: bcae412d-6956-4671-b08a-41887c117957 - Trace ID: 60558009-a1e7-4bdb-b282-18d6a8a60400
Error getting the secret: invalid_client: 7000222 - [2026-03-28 15:10:26Z]: 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: 641aa81b-7d9a-42b2-9600-eac87b160700 Correlation ID: b99fba2b-bfd3-4c7b-99df-c46545dec518 Timestamp: 2026-03-28 15:10:26Z - Correlation ID: b99fba2b-bfd3-4c7b-99df-c46545dec518 - Trace ID: 641aa81b-7d9a-42b2-9600-eac87b160700
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)