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-05-15 17:42:29Z]: 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: 85fa4f2a-799d-4f2b-b008-036de5730300 Correlation ID: f90820ed-1488-4cb8-883a-a27aa32e7c67 Timestamp: 2026-05-15 17:42:29Z - Correlation ID: f90820ed-1488-4cb8-883a-a27aa32e7c67 - Trace ID: 85fa4f2a-799d-4f2b-b008-036de5730300
(node:2768) [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-05-15 17:42:29Z]: 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: 0d773b38-8991-441f-af41-167d95690a00 Correlation ID: c175dbf1-c6ef-4c85-a78a-eb69e9e59922 Timestamp: 2026-05-15 17:42:29Z - Correlation ID: c175dbf1-c6ef-4c85-a78a-eb69e9e59922 - Trace ID: 0d773b38-8991-441f-af41-167d95690a00
Error getting the secret: invalid_client: 7000222 - [2026-05-15 17:42:30Z]: 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: 5bc67ee0-b385-4efc-8d62-eb2d91fe0c00 Correlation ID: 8306fcef-c8f3-4ce3-8d26-0e53ae2eb752 Timestamp: 2026-05-15 17:42:30Z - Correlation ID: 8306fcef-c8f3-4ce3-8d26-0e53ae2eb752 - Trace ID: 5bc67ee0-b385-4efc-8d62-eb2d91fe0c00
Error getting the secret: invalid_client: 7000222 - [2026-05-15 17:42:30Z]: 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: 471ac86e-7286-4d47-86c1-43f168800900 Correlation ID: 5d91a9be-bdd2-4c35-b016-0ff37cd6e38b Timestamp: 2026-05-15 17:42:30Z - Correlation ID: 5d91a9be-bdd2-4c35-b016-0ff37cd6e38b - Trace ID: 471ac86e-7286-4d47-86c1-43f168800900
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)