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-28 03:22:29Z]: 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: 5457fecd-50a2-48bc-a0e8-9092f990b100 Correlation ID: 4940ccbc-e605-459c-a321-7feef10f3caf Timestamp: 2025-12-28 03:22:29Z - Correlation ID: 4940ccbc-e605-459c-a321-7feef10f3caf - Trace ID: 5457fecd-50a2-48bc-a0e8-9092f990b100
(node:2648) [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-28 03:22:29Z]: 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: d95d7331-02c7-4109-a2ad-c90cd453bc00 Correlation ID: c28eaf6a-8a9a-4353-8197-259c394522ce Timestamp: 2025-12-28 03:22:29Z - Correlation ID: c28eaf6a-8a9a-4353-8197-259c394522ce - Trace ID: d95d7331-02c7-4109-a2ad-c90cd453bc00
Error getting the secret: invalid_client: 7000222 - [2025-12-28 03:22:29Z]: 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: 32cfefac-3c23-456d-a91f-e29c2d9bb800 Correlation ID: 36d1c090-c6bc-45bf-a81c-aaf1fd11341d Timestamp: 2025-12-28 03:22:29Z - Correlation ID: 36d1c090-c6bc-45bf-a81c-aaf1fd11341d - Trace ID: 32cfefac-3c23-456d-a91f-e29c2d9bb800
Error getting the secret: invalid_client: 7000222 - [2025-12-28 03:22:30Z]: 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: b557104f-3470-45e6-a845-3da0078d9f00 Correlation ID: b506a25e-851a-4cc9-a175-0339e409eecc Timestamp: 2025-12-28 03:22:30Z - Correlation ID: b506a25e-851a-4cc9-a175-0339e409eecc - Trace ID: b557104f-3470-45e6-a845-3da0078d9f00
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)