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-01 12:12:12Z]: 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: 72179f15-7b91-4868-9130-fcc1fd0e4600 Correlation ID: a63e4898-6bd1-44fe-acd0-58556eb4fb44 Timestamp: 2026-03-01 12:12:12Z - Correlation ID: a63e4898-6bd1-44fe-acd0-58556eb4fb44 - Trace ID: 72179f15-7b91-4868-9130-fcc1fd0e4600
(node:2060) [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-01 12:12: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: da29a787-365c-40bc-bfc2-38dd01743e00 Correlation ID: 4130e1e0-8ac5-426e-9533-56a669d98cd9 Timestamp: 2026-03-01 12:12:13Z - Correlation ID: 4130e1e0-8ac5-426e-9533-56a669d98cd9 - Trace ID: da29a787-365c-40bc-bfc2-38dd01743e00
Error getting the secret: invalid_client: 7000222 - [2026-03-01 12:12: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: 42bd7cbf-61aa-45e7-ad9b-d895e7a34200 Correlation ID: b4ab5b4d-5e3a-4cfb-8ae7-e2b9257e8f9c Timestamp: 2026-03-01 12:12:13Z - Correlation ID: b4ab5b4d-5e3a-4cfb-8ae7-e2b9257e8f9c - Trace ID: 42bd7cbf-61aa-45e7-ad9b-d895e7a34200
Error getting the secret: invalid_client: 7000222 - [2026-03-01 12:12: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: 3d8583f8-3793-4b04-be50-bf7c376b4b00 Correlation ID: b51f2ef9-e8a8-462a-a2e0-8b2a6d2b5b98 Timestamp: 2026-03-01 12:12:13Z - Correlation ID: b51f2ef9-e8a8-462a-a2e0-8b2a6d2b5b98 - Trace ID: 3d8583f8-3793-4b04-be50-bf7c376b4b00
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)