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-05 11:27:13Z]: 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: 594607e7-ef72-43c3-bdb5-d6f304f9d500 Correlation ID: ba9a2b8a-fa94-4f9f-ac5a-6fe2d57eef5a Timestamp: 2026-03-05 11:27:13Z - Correlation ID: ba9a2b8a-fa94-4f9f-ac5a-6fe2d57eef5a - Trace ID: 594607e7-ef72-43c3-bdb5-d6f304f9d500
(node:2948) [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-05 11:27:13Z]: 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: 9c8fb270-203b-4d94-8075-b404be8fce00 Correlation ID: cc8ba3fb-d1fc-44da-9c27-d55c0c2df8c0 Timestamp: 2026-03-05 11:27:13Z - Correlation ID: cc8ba3fb-d1fc-44da-9c27-d55c0c2df8c0 - Trace ID: 9c8fb270-203b-4d94-8075-b404be8fce00
Error getting the secret: invalid_client: 7000222 - [2026-03-05 11:27:14Z]: 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: 524be236-234e-4fcf-9db2-f3900de24300 Correlation ID: 4bd5f582-4ca6-4ed2-b93d-cf80f7cc8b51 Timestamp: 2026-03-05 11:27:14Z - Correlation ID: 4bd5f582-4ca6-4ed2-b93d-cf80f7cc8b51 - Trace ID: 524be236-234e-4fcf-9db2-f3900de24300
Error getting the secret: invalid_client: 7000222 - [2026-03-05 11:27:14Z]: 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: 161d7a7c-25f7-4cb0-a663-de18b75c3e00 Correlation ID: 08931f50-2763-48d7-91a7-8d4ab70239ff Timestamp: 2026-03-05 11:27:14Z - Correlation ID: 08931f50-2763-48d7-91a7-8d4ab70239ff - Trace ID: 161d7a7c-25f7-4cb0-a663-de18b75c3e00
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)