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-07 12:51:18Z]: 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: 49affcb1-6d00-47aa-8a1a-c9de2bb90100 Correlation ID: 42e17465-9309-4172-a927-379bc3f55168 Timestamp: 2026-03-07 12:51:18Z - Correlation ID: 42e17465-9309-4172-a927-379bc3f55168 - Trace ID: 49affcb1-6d00-47aa-8a1a-c9de2bb90100
(node:1696) [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-07 12:51:18Z]: 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: 7173f90d-f80b-4fcd-9bfb-67acd8ff9c00 Correlation ID: 72901524-51c1-4122-b809-0d378489b4e3 Timestamp: 2026-03-07 12:51:18Z - Correlation ID: 72901524-51c1-4122-b809-0d378489b4e3 - Trace ID: 7173f90d-f80b-4fcd-9bfb-67acd8ff9c00
Error getting the secret: invalid_client: 7000222 - [2026-03-07 12:51:19Z]: 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: 07019a56-051b-427b-b950-56d202e99200 Correlation ID: 47fe3dc6-a035-45cc-a792-c608785f3f38 Timestamp: 2026-03-07 12:51:19Z - Correlation ID: 47fe3dc6-a035-45cc-a792-c608785f3f38 - Trace ID: 07019a56-051b-427b-b950-56d202e99200
Error getting the secret: invalid_client: 7000222 - [2026-03-07 12:51:19Z]: 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: 507efc3f-2fd7-46eb-9b31-bd72eaee5a00 Correlation ID: 9a9a1b7c-a740-4cd0-a09e-723024a302d6 Timestamp: 2026-03-07 12:51:19Z - Correlation ID: 9a9a1b7c-a740-4cd0-a09e-723024a302d6 - Trace ID: 507efc3f-2fd7-46eb-9b31-bd72eaee5a00
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)