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-04-18 17:10:01Z]: 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: 8136389e-396c-41f7-8350-7692cae41d00 Correlation ID: 22607a7b-7446-4b6a-a141-64ac3b0bfbec Timestamp: 2026-04-18 17:10:01Z - Correlation ID: 22607a7b-7446-4b6a-a141-64ac3b0bfbec - Trace ID: 8136389e-396c-41f7-8350-7692cae41d00
(node:1152) [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-04-18 17:10:01Z]: 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: e842b410-4622-4b3b-8fec-2728b7671800 Correlation ID: 558f0a99-e20a-4d57-9221-2229a6249880 Timestamp: 2026-04-18 17:10:01Z - Correlation ID: 558f0a99-e20a-4d57-9221-2229a6249880 - Trace ID: e842b410-4622-4b3b-8fec-2728b7671800
Error getting the secret: invalid_client: 7000222 - [2026-04-18 17:10:01Z]: 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: 5fde107f-58d8-4dc2-bc51-f308419e0a00 Correlation ID: 50d1c2a4-95b6-43ff-bb38-70c97b01e549 Timestamp: 2026-04-18 17:10:01Z - Correlation ID: 50d1c2a4-95b6-43ff-bb38-70c97b01e549 - Trace ID: 5fde107f-58d8-4dc2-bc51-f308419e0a00
Error getting the secret: invalid_client: 7000222 - [2026-04-18 17:10:01Z]: 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: 4e889f62-3a8e-4d06-8b96-81aeab542a00 Correlation ID: 4c686736-4eb0-4a45-99e4-8de90bccde41 Timestamp: 2026-04-18 17:10:01Z - Correlation ID: 4c686736-4eb0-4a45-99e4-8de90bccde41 - Trace ID: 4e889f62-3a8e-4d06-8b96-81aeab542a00
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)