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 22:45:47Z]: 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: 35d673ed-7ec8-44ae-a2a6-ecac4d8e4f00 Correlation ID: 8b142ba6-55d2-4852-85ff-cfb1b63a260a Timestamp: 2026-03-05 22:45:47Z - Correlation ID: 8b142ba6-55d2-4852-85ff-cfb1b63a260a - Trace ID: 35d673ed-7ec8-44ae-a2a6-ecac4d8e4f00
(node:2908) [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 22:45:47Z]: 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: de8bdb04-d830-4da9-babb-6f4eb56f6e00 Correlation ID: 8fa87acd-68a4-470d-a4c3-6076e884f088 Timestamp: 2026-03-05 22:45:47Z - Correlation ID: 8fa87acd-68a4-470d-a4c3-6076e884f088 - Trace ID: de8bdb04-d830-4da9-babb-6f4eb56f6e00
Error getting the secret: invalid_client: 7000222 - [2026-03-05 22:45:47Z]: 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: 877269d1-207f-41f4-968d-91321be93800 Correlation ID: 405adf74-313f-4bc6-86c0-deae76d0fc87 Timestamp: 2026-03-05 22:45:47Z - Correlation ID: 405adf74-313f-4bc6-86c0-deae76d0fc87 - Trace ID: 877269d1-207f-41f4-968d-91321be93800
Error getting the secret: invalid_client: 7000222 - [2026-03-05 22:45:47Z]: 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: 3fe29676-6e94-447b-aaf3-5ac3979d3a00 Correlation ID: a6fd6f1e-073e-4b97-9b57-65b57e5e5b03 Timestamp: 2026-03-05 22:45:47Z - Correlation ID: a6fd6f1e-073e-4b97-9b57-65b57e5e5b03 - Trace ID: 3fe29676-6e94-447b-aaf3-5ac3979d3a00
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)