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-01-20 12:50:36Z]: 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: 54b4409e-f6c8-44ca-83f3-f528c30b4600 Correlation ID: 3d634dd4-50ed-41fa-8fb0-836bd5f94a5c Timestamp: 2026-01-20 12:50:36Z - Correlation ID: 3d634dd4-50ed-41fa-8fb0-836bd5f94a5c - Trace ID: 54b4409e-f6c8-44ca-83f3-f528c30b4600
(node:2012) [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-01-20 12:50:36Z]: 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: ac3ac11a-fe5d-43eb-8b03-1ef40ec65300 Correlation ID: 0313910f-4a91-4ef5-8b72-0ddb2c5fce31 Timestamp: 2026-01-20 12:50:36Z - Correlation ID: 0313910f-4a91-4ef5-8b72-0ddb2c5fce31 - Trace ID: ac3ac11a-fe5d-43eb-8b03-1ef40ec65300
Error getting the secret: invalid_client: 7000222 - [2026-01-20 12:50:36Z]: 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: 66539bec-30ef-4bbf-89af-cfe5f2477400 Correlation ID: ab62e3cd-f251-4fa5-b61c-3c9a9eca9c95 Timestamp: 2026-01-20 12:50:36Z - Correlation ID: ab62e3cd-f251-4fa5-b61c-3c9a9eca9c95 - Trace ID: 66539bec-30ef-4bbf-89af-cfe5f2477400
Error getting the secret: invalid_client: 7000222 - [2026-01-20 12:50:36Z]: 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: e9dc4bf2-74c5-4c5f-a1b5-9b6076f66700 Correlation ID: 4ec63684-4889-4fba-8b6e-bb6c31185e1f Timestamp: 2026-01-20 12:50:36Z - Correlation ID: 4ec63684-4889-4fba-8b6e-bb6c31185e1f - Trace ID: e9dc4bf2-74c5-4c5f-a1b5-9b6076f66700
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)