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-29 08:28:42Z]: 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: 0256a4d1-494e-4494-98a9-3ed7797a1700 Correlation ID: 18cadad3-d20f-4edb-bb8f-ce082c955e43 Timestamp: 2026-03-29 08:28:42Z - Correlation ID: 18cadad3-d20f-4edb-bb8f-ce082c955e43 - Trace ID: 0256a4d1-494e-4494-98a9-3ed7797a1700
(node:4388) [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-29 08:28:43Z]: 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: e33893e2-825d-4c19-9ec2-555ccd831000 Correlation ID: affad89b-d13f-4b63-a0f8-f049672c8d08 Timestamp: 2026-03-29 08:28:43Z - Correlation ID: affad89b-d13f-4b63-a0f8-f049672c8d08 - Trace ID: e33893e2-825d-4c19-9ec2-555ccd831000
Error getting the secret: invalid_client: 7000222 - [2026-03-29 08:28:43Z]: 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: e992d844-4d3d-4073-8d3c-90b3faa90f00 Correlation ID: b4d2ebbf-a487-4289-a352-323c1044efb0 Timestamp: 2026-03-29 08:28:43Z - Correlation ID: b4d2ebbf-a487-4289-a352-323c1044efb0 - Trace ID: e992d844-4d3d-4073-8d3c-90b3faa90f00
Error getting the secret: invalid_client: 7000222 - [2026-03-29 08:28:44Z]: 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: 36a31e99-f478-414e-8d81-3504b20c1400 Correlation ID: abb36455-51d6-49ee-80ef-281fd1bbc733 Timestamp: 2026-03-29 08:28:44Z - Correlation ID: abb36455-51d6-49ee-80ef-281fd1bbc733 - Trace ID: 36a31e99-f478-414e-8d81-3504b20c1400
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)