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-03 17:45:50Z]: 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: 5bd5e89e-c370-431f-86d8-88b9ebb70b00 Correlation ID: 59a233ed-67a9-4043-855b-19a0aa207664 Timestamp: 2026-04-03 17:45:50Z - Correlation ID: 59a233ed-67a9-4043-855b-19a0aa207664 - Trace ID: 5bd5e89e-c370-431f-86d8-88b9ebb70b00
(node:384) [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-03 17:45:50Z]: 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: d4ae3274-cd5c-45a8-934e-ee6d13570800 Correlation ID: e93988d0-fb2a-40bc-9c73-54514fb0df96 Timestamp: 2026-04-03 17:45:50Z - Correlation ID: e93988d0-fb2a-40bc-9c73-54514fb0df96 - Trace ID: d4ae3274-cd5c-45a8-934e-ee6d13570800
Error getting the secret: invalid_client: 7000222 - [2026-04-03 17:45:50Z]: 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: 25e8057b-faa1-4526-ae65-e13ff10b3400 Correlation ID: 165569c3-26c5-4c0e-adc6-d01a04435b25 Timestamp: 2026-04-03 17:45:50Z - Correlation ID: 165569c3-26c5-4c0e-adc6-d01a04435b25 - Trace ID: 25e8057b-faa1-4526-ae65-e13ff10b3400
Error getting the secret: invalid_client: 7000222 - [2026-04-03 17:45:50Z]: 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: 5bd5e89e-c370-431f-86d8-88b9fcb70b00 Correlation ID: 3063ad7d-773f-455c-81c9-8fde47649af8 Timestamp: 2026-04-03 17:45:50Z - Correlation ID: 3063ad7d-773f-455c-81c9-8fde47649af8 - Trace ID: 5bd5e89e-c370-431f-86d8-88b9fcb70b00
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)