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-23 08:40:17Z]: 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: ae360c47-a1ad-4ed2-b4cc-53eca57a3f00 Correlation ID: 7cdec8df-f6ef-41c7-a384-88ffe1bdf293 Timestamp: 2026-04-23 08:40:17Z - Correlation ID: 7cdec8df-f6ef-41c7-a384-88ffe1bdf293 - Trace ID: ae360c47-a1ad-4ed2-b4cc-53eca57a3f00
(node:3896) [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-23 08:40:17Z]: 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: 3552a594-5a9b-4060-80c9-6463bfee6e00 Correlation ID: cbe99181-9986-4cab-8c76-e13b35477e26 Timestamp: 2026-04-23 08:40:17Z - Correlation ID: cbe99181-9986-4cab-8c76-e13b35477e26 - Trace ID: 3552a594-5a9b-4060-80c9-6463bfee6e00
Error getting the secret: invalid_client: 7000222 - [2026-04-23 08:40:17Z]: 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: 7b9d491e-e973-4654-a3d1-237abcad2200 Correlation ID: 417d62ef-223a-4c98-a5c5-e89fbbad01d2 Timestamp: 2026-04-23 08:40:17Z - Correlation ID: 417d62ef-223a-4c98-a5c5-e89fbbad01d2 - Trace ID: 7b9d491e-e973-4654-a3d1-237abcad2200
Error getting the secret: invalid_client: 7000222 - [2026-04-23 08:40:17Z]: 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: 3552a594-5a9b-4060-80c9-6463c3ee6e00 Correlation ID: 20da915b-7e83-4544-b95e-cd3d6ef269f9 Timestamp: 2026-04-23 08:40:17Z - Correlation ID: 20da915b-7e83-4544-b95e-cd3d6ef269f9 - Trace ID: 3552a594-5a9b-4060-80c9-6463c3ee6e00
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)