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-17 06:09:20Z]: 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: 722cba98-012e-4549-904d-13aad8130300 Correlation ID: f5626f3d-38a6-4df2-a09a-51cf059b15b2 Timestamp: 2026-03-17 06:09:20Z - Correlation ID: f5626f3d-38a6-4df2-a09a-51cf059b15b2 - Trace ID: 722cba98-012e-4549-904d-13aad8130300
(node:4176) [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-17 06:09:21Z]: 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: b7650047-58bc-4810-930d-70111a490400 Correlation ID: 0dc17704-324b-4a90-a192-1e44c6678049 Timestamp: 2026-03-17 06:09:21Z - Correlation ID: 0dc17704-324b-4a90-a192-1e44c6678049 - Trace ID: b7650047-58bc-4810-930d-70111a490400
Error getting the secret: invalid_client: 7000222 - [2026-03-17 06:09:21Z]: 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: 7e79e355-18f6-490d-90d0-4d8df08f3400 Correlation ID: 78d5f901-2537-454c-bd1b-dbcdf5177d79 Timestamp: 2026-03-17 06:09:21Z - Correlation ID: 78d5f901-2537-454c-bd1b-dbcdf5177d79 - Trace ID: 7e79e355-18f6-490d-90d0-4d8df08f3400
Error getting the secret: invalid_client: 7000222 - [2026-03-17 06:09:21Z]: 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: b252a78a-9ef6-4ee8-9eda-b98646d00200 Correlation ID: 8864fb37-c1c7-4206-8212-277a71e84484 Timestamp: 2026-03-17 06:09:21Z - Correlation ID: 8864fb37-c1c7-4206-8212-277a71e84484 - Trace ID: b252a78a-9ef6-4ee8-9eda-b98646d00200
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)