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 20:01:30Z]: 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: 196e2f4f-56bd-4623-ab91-3db208b51800 Correlation ID: 8d856889-6381-4c43-b929-12a40629f136 Timestamp: 2026-04-18 20:01:30Z - Correlation ID: 8d856889-6381-4c43-b929-12a40629f136 - Trace ID: 196e2f4f-56bd-4623-ab91-3db208b51800
(node:5460) [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 20:01:30Z]: 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: 86fc0b0c-14af-4899-ab99-c78008fe2400 Correlation ID: 8233bf2d-3557-4bca-91f4-3c9ab59961c0 Timestamp: 2026-04-18 20:01:30Z - Correlation ID: 8233bf2d-3557-4bca-91f4-3c9ab59961c0 - Trace ID: 86fc0b0c-14af-4899-ab99-c78008fe2400
Error getting the secret: invalid_client: 7000222 - [2026-04-18 20:01:30Z]: 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: 44603758-8585-4dfc-a756-165d96420f00 Correlation ID: 8645d373-1ba2-4b35-85fb-7abb6c6b2344 Timestamp: 2026-04-18 20:01:30Z - Correlation ID: 8645d373-1ba2-4b35-85fb-7abb6c6b2344 - Trace ID: 44603758-8585-4dfc-a756-165d96420f00
Error getting the secret: invalid_client: 7000222 - [2026-04-18 20:01:31Z]: 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: c8d7cc77-58d6-4e9f-8f64-7b23e59d2200 Correlation ID: 3e39c8ce-23ce-4b02-96f2-60914d810fd5 Timestamp: 2026-04-18 20:01:31Z - Correlation ID: 3e39c8ce-23ce-4b02-96f2-60914d810fd5 - Trace ID: c8d7cc77-58d6-4e9f-8f64-7b23e59d2200
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)