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-12-24 19:18:04Z]: 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: 90e0e00f-6156-4ea0-b767-2c3b1deb0a00 Correlation ID: 3edee9a9-6551-4ec1-a19b-ebd0c36acccd Timestamp: 2025-12-24 19:18:04Z - Correlation ID: 3edee9a9-6551-4ec1-a19b-ebd0c36acccd - Trace ID: 90e0e00f-6156-4ea0-b767-2c3b1deb0a00
(node:1224) [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-12-24 19:18:05Z]: 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: cd65f2df-4b17-4c23-a2b7-191212c47800 Correlation ID: 731608f1-9023-4382-b641-6f0ffcb28e32 Timestamp: 2025-12-24 19:18:05Z - Correlation ID: 731608f1-9023-4382-b641-6f0ffcb28e32 - Trace ID: cd65f2df-4b17-4c23-a2b7-191212c47800
Error getting the secret: invalid_client: 7000222 - [2025-12-24 19:18:05Z]: 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: 97d06a11-7438-4554-b0eb-6e8537ff6700 Correlation ID: 2d8892b4-99e2-462d-8227-3b38723d565b Timestamp: 2025-12-24 19:18:05Z - Correlation ID: 2d8892b4-99e2-462d-8227-3b38723d565b - Trace ID: 97d06a11-7438-4554-b0eb-6e8537ff6700
Error getting the secret: invalid_client: 7000222 - [2025-12-24 19:18:05Z]: 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: 5e7796b7-1921-4e9e-aa61-a884e5b86d00 Correlation ID: 9f8c037b-875e-4ae6-b6ff-b4665ffda87e Timestamp: 2025-12-24 19:18:05Z - Correlation ID: 9f8c037b-875e-4ae6-b6ff-b4665ffda87e - Trace ID: 5e7796b7-1921-4e9e-aa61-a884e5b86d00
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)