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-01 22:59:05Z]: 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: 6fd35984-f8e4-4b5c-8ae5-d60680652e00 Correlation ID: c1f7ab8d-5658-44c9-9285-9558dfe3750f Timestamp: 2026-05-01 22:59:05Z - Correlation ID: c1f7ab8d-5658-44c9-9285-9558dfe3750f - Trace ID: 6fd35984-f8e4-4b5c-8ae5-d60680652e00
(node:2312) [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-01 22:59:05Z]: 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: 06ab7a28-068d-49a2-afb9-67cf81053200 Correlation ID: 16561a61-c7ab-4679-890e-8f884cd0e23e Timestamp: 2026-05-01 22:59:05Z - Correlation ID: 16561a61-c7ab-4679-890e-8f884cd0e23e - Trace ID: 06ab7a28-068d-49a2-afb9-67cf81053200
Error getting the secret: invalid_client: 7000222 - [2026-05-01 22:59:06Z]: 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: 5e3b6f44-1e65-4635-9abe-d4d29f542a00 Correlation ID: c9d939b7-a571-49da-a89a-1b5a2e5cf425 Timestamp: 2026-05-01 22:59:06Z - Correlation ID: c9d939b7-a571-49da-a89a-1b5a2e5cf425 - Trace ID: 5e3b6f44-1e65-4635-9abe-d4d29f542a00
Error getting the secret: invalid_client: 7000222 - [2026-05-01 22:59:06Z]: 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: 6fd35984-f8e4-4b5c-8ae5-d60695652e00 Correlation ID: c9cc2e82-7c05-4fff-91a9-eb381063576d Timestamp: 2026-05-01 22:59:06Z - Correlation ID: c9cc2e82-7c05-4fff-91a9-eb381063576d - Trace ID: 6fd35984-f8e4-4b5c-8ae5-d60695652e00
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)