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-08 00:21:09Z]: 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: 29353b7c-23bd-4ac7-99fc-a29b30507400 Correlation ID: 8c57e681-b82b-4be2-8396-5f91dd398eac Timestamp: 2026-03-08 00:21:09Z - Correlation ID: 8c57e681-b82b-4be2-8396-5f91dd398eac - Trace ID: 29353b7c-23bd-4ac7-99fc-a29b30507400
(node:3228) [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-08 00:21:09Z]: 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: 29353b7c-23bd-4ac7-99fc-a29b35507400 Correlation ID: 98ed015e-1306-4dd2-89b0-cca1bde2dcac Timestamp: 2026-03-08 00:21:09Z - Correlation ID: 98ed015e-1306-4dd2-89b0-cca1bde2dcac - Trace ID: 29353b7c-23bd-4ac7-99fc-a29b35507400
Error getting the secret: invalid_client: 7000222 - [2026-03-08 00:21:09Z]: 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: bfb4bf0d-92e7-4a47-aa21-75aaf5f60d01 Correlation ID: 65ac7c91-b899-40d5-9f07-5135f55c65f7 Timestamp: 2026-03-08 00:21:09Z - Correlation ID: 65ac7c91-b899-40d5-9f07-5135f55c65f7 - Trace ID: bfb4bf0d-92e7-4a47-aa21-75aaf5f60d01
Error getting the secret: invalid_client: 7000222 - [2026-03-08 00:21:10Z]: 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: 151918d4-9f31-47b5-af6a-aef222be6200 Correlation ID: 9b797024-5dbe-4895-84cb-3fe3a4a4896e Timestamp: 2026-03-08 00:21:10Z - Correlation ID: 9b797024-5dbe-4895-84cb-3fe3a4a4896e - Trace ID: 151918d4-9f31-47b5-af6a-aef222be6200
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)