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-21 19:26:01Z]: 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: ccfc6ff3-ed23-46c8-8f07-87613dd90800 Correlation ID: bdc21d94-1ae2-4a4e-983b-1a26f313eb84 Timestamp: 2026-03-21 19:26:01Z - Correlation ID: bdc21d94-1ae2-4a4e-983b-1a26f313eb84 - Trace ID: ccfc6ff3-ed23-46c8-8f07-87613dd90800
(node:2564) [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-21 19:26:01Z]: 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: 8cc9538a-fcc1-476b-bf95-74c141e00900 Correlation ID: 9ec8ee86-ec59-4621-b7f7-e28afe07dacd Timestamp: 2026-03-21 19:26:01Z - Correlation ID: 9ec8ee86-ec59-4621-b7f7-e28afe07dacd - Trace ID: 8cc9538a-fcc1-476b-bf95-74c141e00900
Error getting the secret: invalid_client: 7000222 - [2026-03-21 19:26:02Z]: 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: 6a1884c0-d81d-4a15-acc2-366d18b70e00 Correlation ID: 3d443b9b-ff0d-4a3c-828c-b2424ee9aab7 Timestamp: 2026-03-21 19:26:02Z - Correlation ID: 3d443b9b-ff0d-4a3c-828c-b2424ee9aab7 - Trace ID: 6a1884c0-d81d-4a15-acc2-366d18b70e00
Error getting the secret: invalid_client: 7000222 - [2026-03-21 19:26:02Z]: 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: be9eeeae-8220-4860-9836-f507e7390b00 Correlation ID: b3c77eaa-f709-4811-bdc6-b1e92d4f843d Timestamp: 2026-03-21 19:26:02Z - Correlation ID: b3c77eaa-f709-4811-bdc6-b1e92d4f843d - Trace ID: be9eeeae-8220-4860-9836-f507e7390b00
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)