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-25 12:55:45Z]: 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: 67d0a593-baa3-43f8-9902-cd88d0f20100 Correlation ID: d048d357-b8dc-45b3-8637-7721433dd18f Timestamp: 2026-03-25 12:55:45Z - Correlation ID: d048d357-b8dc-45b3-8637-7721433dd18f - Trace ID: 67d0a593-baa3-43f8-9902-cd88d0f20100
(node:5452) [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-25 12:55:45Z]: 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: 0d34751a-e5f1-466f-800d-d2dfdf810200 Correlation ID: 442205e5-b515-43cc-b482-cecfabdbe6bb Timestamp: 2026-03-25 12:55:45Z - Correlation ID: 442205e5-b515-43cc-b482-cecfabdbe6bb - Trace ID: 0d34751a-e5f1-466f-800d-d2dfdf810200
Error getting the secret: invalid_client: 7000222 - [2026-03-25 12:55:46Z]: 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: af3ffdc6-d6be-4aa2-b01c-97b923ee0200 Correlation ID: 1194707c-3587-4560-8bd6-62ecff36ab10 Timestamp: 2026-03-25 12:55:46Z - Correlation ID: 1194707c-3587-4560-8bd6-62ecff36ab10 - Trace ID: af3ffdc6-d6be-4aa2-b01c-97b923ee0200
Error getting the secret: invalid_client: 7000222 - [2026-03-25 12:55:46Z]: 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: 429819a4-252c-45c4-92d3-e53bd3460300 Correlation ID: e014d439-122d-42c0-a050-d4b856830441 Timestamp: 2026-03-25 12:55:46Z - Correlation ID: e014d439-122d-42c0-a050-d4b856830441 - Trace ID: 429819a4-252c-45c4-92d3-e53bd3460300
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)