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-05-21 11:14:52Z]: 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: ef44c140-551c-469c-8e21-4d9bb6f16f00 Correlation ID: d7f82c0b-2164-47e5-a373-2c40002e4649 Timestamp: 2026-05-21 11:14:52Z - Correlation ID: d7f82c0b-2164-47e5-a373-2c40002e4649 - Trace ID: ef44c140-551c-469c-8e21-4d9bb6f16f00
(node:6540) [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-05-21 11:14:52Z]: 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: 58332fd2-1244-4f70-93d6-5068ba7a6700 Correlation ID: 2ebb676e-6c02-4089-ab66-b7b3302c78a5 Timestamp: 2026-05-21 11:14:52Z - Correlation ID: 2ebb676e-6c02-4089-ab66-b7b3302c78a5 - Trace ID: 58332fd2-1244-4f70-93d6-5068ba7a6700
Error getting the secret: invalid_client: 7000222 - [2026-05-21 11:14:52Z]: 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: b70dad2c-829c-46c9-ab67-37c3abef6a00 Correlation ID: c62d0421-5eec-42af-8cb8-4e4cb2d66e29 Timestamp: 2026-05-21 11:14:52Z - Correlation ID: c62d0421-5eec-42af-8cb8-4e4cb2d66e29 - Trace ID: b70dad2c-829c-46c9-ab67-37c3abef6a00
Error getting the secret: invalid_client: 7000222 - [2026-05-21 11:14:52Z]: 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: ba74a27a-909b-45a9-9048-e677707f4d00 Correlation ID: b58cb6e2-8a35-44e3-9df5-9e821050a40c Timestamp: 2026-05-21 11:14:52Z - Correlation ID: b58cb6e2-8a35-44e3-9df5-9e821050a40c - Trace ID: ba74a27a-909b-45a9-9048-e677707f4d00
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)