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-04-16 01:06:03Z]: 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: db34cc96-5860-4f5c-9135-258f81ee4000 Correlation ID: bacba13a-b7a2-403f-911e-e1acde500332 Timestamp: 2026-04-16 01:06:03Z - Correlation ID: bacba13a-b7a2-403f-911e-e1acde500332 - Trace ID: db34cc96-5860-4f5c-9135-258f81ee4000
(node:2544) [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-04-16 01:06:03Z]: 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: a0606cea-af5e-475b-a56f-eaaa5da20000 Correlation ID: 93c131c5-07af-4759-82f9-06d464141d6c Timestamp: 2026-04-16 01:06:03Z - Correlation ID: 93c131c5-07af-4759-82f9-06d464141d6c - Trace ID: a0606cea-af5e-475b-a56f-eaaa5da20000
Error getting the secret: invalid_client: 7000222 - [2026-04-16 01:06:03Z]: 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: 77167f1e-d57c-42a8-b125-0a981fe40b00 Correlation ID: 116ca95f-830d-44b9-9270-f8fb00a9c7d3 Timestamp: 2026-04-16 01:06:03Z - Correlation ID: 116ca95f-830d-44b9-9270-f8fb00a9c7d3 - Trace ID: 77167f1e-d57c-42a8-b125-0a981fe40b00
Error getting the secret: invalid_client: 7000222 - [2026-04-16 01:06:04Z]: 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: 5dd7218c-f062-46c6-a72f-5b70aba40700 Correlation ID: d6218473-6a88-4baa-963b-b87750ee38ce Timestamp: 2026-04-16 01:06:04Z - Correlation ID: d6218473-6a88-4baa-963b-b87750ee38ce - Trace ID: 5dd7218c-f062-46c6-a72f-5b70aba40700
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)