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-05 00:10: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: a589e285-f4d1-4731-9a10-d0e191704a00 Correlation ID: 32eb7dc5-368e-4ae6-9838-931991cb3532 Timestamp: 2026-03-05 00:10:46Z - Correlation ID: 32eb7dc5-368e-4ae6-9838-931991cb3532 - Trace ID: a589e285-f4d1-4731-9a10-d0e191704a00
(node:5164) [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-05 00:10: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: 74bfef8c-3f87-49e5-adc0-26a25ff52400 Correlation ID: 6868d8b9-b15b-4c96-886e-1aed36a86db5 Timestamp: 2026-03-05 00:10:46Z - Correlation ID: 6868d8b9-b15b-4c96-886e-1aed36a86db5 - Trace ID: 74bfef8c-3f87-49e5-adc0-26a25ff52400
Error getting the secret: invalid_client: 7000222 - [2026-03-05 00:10: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: 431c337b-1080-4e97-840c-06549f581100 Correlation ID: baebeaae-5289-46c7-bc9c-f0d3219a0a8e Timestamp: 2026-03-05 00:10:46Z - Correlation ID: baebeaae-5289-46c7-bc9c-f0d3219a0a8e - Trace ID: 431c337b-1080-4e97-840c-06549f581100
Error getting the secret: invalid_client: 7000222 - [2026-03-05 00:10: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: 4fc07276-4361-4e42-a7c6-512632723300 Correlation ID: cb8cdb87-5800-4bfe-a8a9-7ff76dd411ce Timestamp: 2026-03-05 00:10:46Z - Correlation ID: cb8cdb87-5800-4bfe-a8a9-7ff76dd411ce - Trace ID: 4fc07276-4361-4e42-a7c6-512632723300
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)