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 - [2025-09-17 21:43:07Z]: 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: 0af2e31f-2e20-42e3-8702-4569daabf300 Correlation ID: b9a35243-1e7d-461d-b249-f327f4cfe06d Timestamp: 2025-09-17 21:43:07Z - Correlation ID: b9a35243-1e7d-461d-b249-f327f4cfe06d - Trace ID: 0af2e31f-2e20-42e3-8702-4569daabf300 (node:5024) [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 - [2025-09-17 21:43:07Z]: 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: 6c2d9a9d-f0d2-4817-9b1b-26adbb530b01 Correlation ID: 039abf3f-fa5e-43d9-a3ee-9e36d5b31f7a Timestamp: 2025-09-17 21:43:07Z - Correlation ID: 039abf3f-fa5e-43d9-a3ee-9e36d5b31f7a - Trace ID: 6c2d9a9d-f0d2-4817-9b1b-26adbb530b01 Error getting the secret: invalid_client: 7000222 - [2025-09-17 21:43:07Z]: 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: 156a3933-af7c-448d-a1c9-950c9a982200 Correlation ID: 56fb55dd-3b13-4ce7-8ce4-895f02eca1af Timestamp: 2025-09-17 21:43:07Z - Correlation ID: 56fb55dd-3b13-4ce7-8ce4-895f02eca1af - Trace ID: 156a3933-af7c-448d-a1c9-950c9a982200 Error getting the secret: invalid_client: 7000222 - [2025-09-17 21:43:08Z]: 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: fa782115-f9b6-4924-943f-5535a6ee2f00 Correlation ID: 7f356775-ce08-4180-94ff-b6ada4bb019a Timestamp: 2025-09-17 21:43:08Z - Correlation ID: 7f356775-ce08-4180-94ff-b6ada4bb019a - Trace ID: fa782115-f9b6-4924-943f-5535a6ee2f00 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)