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 - [2025-12-31 17:57:12Z]: 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: a2e1f93e-31de-49f7-b59a-7f00ca2a0e01 Correlation ID: 354c2a5c-be00-464d-a5c4-00eddab34e50 Timestamp: 2025-12-31 17:57:12Z - Correlation ID: 354c2a5c-be00-464d-a5c4-00eddab34e50 - Trace ID: a2e1f93e-31de-49f7-b59a-7f00ca2a0e01
(node:832) [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 - [2025-12-31 17:57:13Z]: 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: 2b457bec-a975-4b06-93cc-1fe328d50801 Correlation ID: bb476250-b9cd-4c0d-bfe2-7e7b733d35ed Timestamp: 2025-12-31 17:57:13Z - Correlation ID: bb476250-b9cd-4c0d-bfe2-7e7b733d35ed - Trace ID: 2b457bec-a975-4b06-93cc-1fe328d50801
Error getting the secret: invalid_client: 7000222 - [2025-12-31 17:57:13Z]: 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: e8fd16c3-e11f-456f-bc89-6f25afb32301 Correlation ID: 228ef246-0285-4683-8e14-2cbdc2f075c2 Timestamp: 2025-12-31 17:57:13Z - Correlation ID: 228ef246-0285-4683-8e14-2cbdc2f075c2 - Trace ID: e8fd16c3-e11f-456f-bc89-6f25afb32301
Error getting the secret: invalid_client: 7000222 - [2025-12-31 17:57:14Z]: 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: e8fd16c3-e11f-456f-bc89-6f25b6b32301 Correlation ID: 0c7d392c-f94b-424b-9cc2-fac5db0521d2 Timestamp: 2025-12-31 17:57:14Z - Correlation ID: 0c7d392c-f94b-424b-9cc2-fac5db0521d2 - Trace ID: e8fd16c3-e11f-456f-bc89-6f25b6b32301
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)