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-02 21:06:19Z]: 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: cdf14a41-314a-4701-ad12-dc692ca14900 Correlation ID: 0147d376-99aa-44cf-a550-366d4226b983 Timestamp: 2026-05-02 21:06:19Z - Correlation ID: 0147d376-99aa-44cf-a550-366d4226b983 - Trace ID: cdf14a41-314a-4701-ad12-dc692ca14900
(node:4364) [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-02 21:06:19Z]: 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: ae94dafc-b614-4f0a-a6ff-6d5f56e56700 Correlation ID: 447aa211-ccf6-4c7c-a06c-e8605ecc8235 Timestamp: 2026-05-02 21:06:19Z - Correlation ID: 447aa211-ccf6-4c7c-a06c-e8605ecc8235 - Trace ID: ae94dafc-b614-4f0a-a6ff-6d5f56e56700
Error getting the secret: invalid_client: 7000222 - [2026-05-02 21:06:19Z]: 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: 7660b8a0-18a4-4575-8c63-11e361493f00 Correlation ID: dc4edab0-9c29-48c0-9c08-910c325c8c69 Timestamp: 2026-05-02 21:06:19Z - Correlation ID: dc4edab0-9c29-48c0-9c08-910c325c8c69 - Trace ID: 7660b8a0-18a4-4575-8c63-11e361493f00
Error getting the secret: invalid_client: 7000222 - [2026-05-02 21:06:19Z]: 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: 09c9acab-0108-4fa8-a809-dce421e00e00 Correlation ID: 67887fc7-9720-484f-910c-c76cc776dff2 Timestamp: 2026-05-02 21:06:19Z - Correlation ID: 67887fc7-9720-484f-910c-c76cc776dff2 - Trace ID: 09c9acab-0108-4fa8-a809-dce421e00e00
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)