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-11 18:42:25Z]: 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: 4e20e6a8-f155-4f72-a1fe-a91680710b00 Correlation ID: 39f9cf54-1573-4548-9986-aee5be9b58bb Timestamp: 2026-04-11 18:42:25Z - Correlation ID: 39f9cf54-1573-4548-9986-aee5be9b58bb - Trace ID: 4e20e6a8-f155-4f72-a1fe-a91680710b00
(node:6096) [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-11 18:42:25Z]: 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: 8f322d6b-e0d4-40ee-9dfa-28b7e1511800 Correlation ID: 47163169-2201-4a01-9158-732d3b7d26e2 Timestamp: 2026-04-11 18:42:25Z - Correlation ID: 47163169-2201-4a01-9158-732d3b7d26e2 - Trace ID: 8f322d6b-e0d4-40ee-9dfa-28b7e1511800
Error getting the secret: invalid_client: 7000222 - [2026-04-11 18:42:25Z]: 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: dec8022b-9522-41cf-b683-110b5eb41500 Correlation ID: 4399660a-802b-4f00-ad0a-8355fc6dcdc9 Timestamp: 2026-04-11 18:42:25Z - Correlation ID: 4399660a-802b-4f00-ad0a-8355fc6dcdc9 - Trace ID: dec8022b-9522-41cf-b683-110b5eb41500
Error getting the secret: invalid_client: 7000222 - [2026-04-11 18:42:25Z]: 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: 50e8a043-e8d1-42eb-a760-1c7850ae1300 Correlation ID: 5a145d99-be0b-4ac3-a08d-8e33c35fd477 Timestamp: 2026-04-11 18:42:25Z - Correlation ID: 5a145d99-be0b-4ac3-a08d-8e33c35fd477 - Trace ID: 50e8a043-e8d1-42eb-a760-1c7850ae1300
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)