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-06 03:56:46Z]: 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: 01ca4e9c-efa7-41e4-9fc9-f7c73b0a3300 Correlation ID: b7879b68-fc4d-4220-9158-85965a503bbf Timestamp: 2026-03-06 03:56:46Z - Correlation ID: b7879b68-fc4d-4220-9158-85965a503bbf - Trace ID: 01ca4e9c-efa7-41e4-9fc9-f7c73b0a3300
(node:540) [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-06 03:56:46Z]: 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: 0c6b73a9-08e4-43d9-a200-4d509f8b3c00 Correlation ID: ef775616-5aff-4559-8ef8-525bd1be9f9d Timestamp: 2026-03-06 03:56:46Z - Correlation ID: ef775616-5aff-4559-8ef8-525bd1be9f9d - Trace ID: 0c6b73a9-08e4-43d9-a200-4d509f8b3c00
Error getting the secret: invalid_client: 7000222 - [2026-03-06 03:56:46Z]: 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: 8fac1c6e-3eac-4d6e-8a28-4ea987778500 Correlation ID: 28269f2e-3724-4334-9e6d-22b36590893f Timestamp: 2026-03-06 03:56:46Z - Correlation ID: 28269f2e-3724-4334-9e6d-22b36590893f - Trace ID: 8fac1c6e-3eac-4d6e-8a28-4ea987778500
Error getting the secret: invalid_client: 7000222 - [2026-03-06 03:56:47Z]: 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: a4306f71-749b-4a41-aafd-b6972ec12200 Correlation ID: 029e0fef-d1e2-42c2-81c3-eae0712bfcc8 Timestamp: 2026-03-06 03:56:47Z - Correlation ID: 029e0fef-d1e2-42c2-81c3-eae0712bfcc8 - Trace ID: a4306f71-749b-4a41-aafd-b6972ec12200
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)