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-14 08:43:11Z]: 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: 3a31813e-6c10-4662-b25c-3bf0365b3e00 Correlation ID: 7578b0cd-04b9-467d-bd49-24d468f2b2b8 Timestamp: 2026-05-14 08:43:11Z - Correlation ID: 7578b0cd-04b9-467d-bd49-24d468f2b2b8 - Trace ID: 3a31813e-6c10-4662-b25c-3bf0365b3e00
(node:5940) [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-14 08:43:11Z]: 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: 9fbb6516-a89b-49f6-85e5-f023b99b2600 Correlation ID: 145d0d69-d558-4f71-a212-06d8f22db8f3 Timestamp: 2026-05-14 08:43:11Z - Correlation ID: 145d0d69-d558-4f71-a212-06d8f22db8f3 - Trace ID: 9fbb6516-a89b-49f6-85e5-f023b99b2600
Error getting the secret: invalid_client: 7000222 - [2026-05-14 08:43:11Z]: 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: b655dc6e-530b-42d0-b1f6-57ee291b2800 Correlation ID: 365a7d80-c850-423a-8dc4-6a9d19d93d96 Timestamp: 2026-05-14 08:43:11Z - Correlation ID: 365a7d80-c850-423a-8dc4-6a9d19d93d96 - Trace ID: b655dc6e-530b-42d0-b1f6-57ee291b2800
Error getting the secret: invalid_client: 7000222 - [2026-05-14 08:43:11Z]: 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: 9bdf142d-51eb-4751-b107-a2fdb4522800 Correlation ID: a1b4cecd-1014-45aa-9979-72dab54fd0fe Timestamp: 2026-05-14 08:43:11Z - Correlation ID: a1b4cecd-1014-45aa-9979-72dab54fd0fe - Trace ID: 9bdf142d-51eb-4751-b107-a2fdb4522800
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)