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-04 00:49:09Z]: 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: 3b34cbf4-f463-4b5d-8168-62e616b75800 Correlation ID: 9281c2c8-5c3e-4676-a183-8dd054a1a7e4 Timestamp: 2026-05-04 00:49:09Z - Correlation ID: 9281c2c8-5c3e-4676-a183-8dd054a1a7e4 - Trace ID: 3b34cbf4-f463-4b5d-8168-62e616b75800
(node:4516) [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-04 00:49:10Z]: 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: 7e54864d-1f91-4385-bd4c-05d52b051f00 Correlation ID: a0dbfa4b-0605-4fd7-abcd-21a8e76b1194 Timestamp: 2026-05-04 00:49:10Z - Correlation ID: a0dbfa4b-0605-4fd7-abcd-21a8e76b1194 - Trace ID: 7e54864d-1f91-4385-bd4c-05d52b051f00
Error getting the secret: invalid_client: 7000222 - [2026-05-04 00:49:10Z]: 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: 40a425fc-1e2b-42a6-8509-f5fe5f585d00 Correlation ID: 102075d2-38e3-4640-93a9-ba6d2b0ee2db Timestamp: 2026-05-04 00:49:10Z - Correlation ID: 102075d2-38e3-4640-93a9-ba6d2b0ee2db - Trace ID: 40a425fc-1e2b-42a6-8509-f5fe5f585d00
Error getting the secret: invalid_client: 7000222 - [2026-05-04 00:49:10Z]: 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: 1aa4fe81-7002-457f-ae91-b51f61625200 Correlation ID: fd20f128-edf5-492b-ae06-471f882bd1c9 Timestamp: 2026-05-04 00:49:10Z - Correlation ID: fd20f128-edf5-492b-ae06-471f882bd1c9 - Trace ID: 1aa4fe81-7002-457f-ae91-b51f61625200
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)