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-05 17:54:59Z]: 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: 6dccf378-7921-4263-8500-8e69b9512d00 Correlation ID: bcf624ab-db15-4501-bf11-87bdce10e657 Timestamp: 2026-04-05 17:54:59Z - Correlation ID: bcf624ab-db15-4501-bf11-87bdce10e657 - Trace ID: 6dccf378-7921-4263-8500-8e69b9512d00
(node:228) [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-05 17:54:59Z]: 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: 2130fd9c-673f-4a32-aac2-999527352b00 Correlation ID: 289c04f4-337e-4636-ae6d-6ef87040dc2d Timestamp: 2026-04-05 17:54:59Z - Correlation ID: 289c04f4-337e-4636-ae6d-6ef87040dc2d - Trace ID: 2130fd9c-673f-4a32-aac2-999527352b00
Error getting the secret: invalid_client: 7000222 - [2026-04-05 17:55:00Z]: 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: 9c047267-3e16-4bc4-bb1b-ec82ef3e0400 Correlation ID: a6f3f805-4776-4137-bcf4-7ac65381b0a6 Timestamp: 2026-04-05 17:55:00Z - Correlation ID: a6f3f805-4776-4137-bcf4-7ac65381b0a6 - Trace ID: 9c047267-3e16-4bc4-bb1b-ec82ef3e0400
Error getting the secret: invalid_client: 7000222 - [2026-04-05 17:55:00Z]: 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: 9e697555-96e7-4ea6-b457-a91276713600 Correlation ID: b59b30c2-e477-4217-8268-97023894e4b0 Timestamp: 2026-04-05 17:55:00Z - Correlation ID: b59b30c2-e477-4217-8268-97023894e4b0 - Trace ID: 9e697555-96e7-4ea6-b457-a91276713600
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)