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-08 09:44:34Z]: 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: 532cfccb-c2ca-4d25-b930-62a666f89a00 Correlation ID: dc30fc79-b9a6-45b7-9ff9-0978c1cf0245 Timestamp: 2026-03-08 09:44:34Z - Correlation ID: dc30fc79-b9a6-45b7-9ff9-0978c1cf0245 - Trace ID: 532cfccb-c2ca-4d25-b930-62a666f89a00
(node:3792) [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-08 09:44:34Z]: 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: f63263ff-62f7-49a2-8bb7-45f2fb11b300 Correlation ID: 6a437376-020b-4882-af95-b1c6a74053a5 Timestamp: 2026-03-08 09:44:34Z - Correlation ID: 6a437376-020b-4882-af95-b1c6a74053a5 - Trace ID: f63263ff-62f7-49a2-8bb7-45f2fb11b300
Error getting the secret: invalid_client: 7000222 - [2026-03-08 09:44:35Z]: 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: ea3e607c-acdf-4c6f-9da3-96e7cc336c00 Correlation ID: bf61c742-f8f6-452c-b0cf-eec3f094b44c Timestamp: 2026-03-08 09:44:35Z - Correlation ID: bf61c742-f8f6-452c-b0cf-eec3f094b44c - Trace ID: ea3e607c-acdf-4c6f-9da3-96e7cc336c00
Error getting the secret: invalid_client: 7000222 - [2026-03-08 09:44:35Z]: 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: 73ace2de-6ae0-4295-a164-44b7af372100 Correlation ID: 3601752c-3c75-40e3-b03f-450afee53f0b Timestamp: 2026-03-08 09:44:35Z - Correlation ID: 3601752c-3c75-40e3-b03f-450afee53f0b - Trace ID: 73ace2de-6ae0-4295-a164-44b7af372100
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)