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-01-02 02:13:14Z]: 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: a4ef467d-c166-4d00-be6a-eaf98c2b0b00 Correlation ID: 50625fa7-43ea-4b89-b3bc-1f94f1d6c537 Timestamp: 2026-01-02 02:13:14Z - Correlation ID: 50625fa7-43ea-4b89-b3bc-1f94f1d6c537 - Trace ID: a4ef467d-c166-4d00-be6a-eaf98c2b0b00
(node:5904) [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-01-02 02:13:15Z]: 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: b025e25a-8d13-4343-b3c0-887b83584001 Correlation ID: 41c5a587-a7a7-4f14-abf3-fb8abec2f691 Timestamp: 2026-01-02 02:13:15Z - Correlation ID: 41c5a587-a7a7-4f14-abf3-fb8abec2f691 - Trace ID: b025e25a-8d13-4343-b3c0-887b83584001
Error getting the secret: invalid_client: 7000222 - [2026-01-02 02:13:15Z]: 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: 8cff0dbe-035c-4b3d-a5e4-41d5e19a6701 Correlation ID: 349ee144-2ec7-429e-b879-3511ef9cee03 Timestamp: 2026-01-02 02:13:15Z - Correlation ID: 349ee144-2ec7-429e-b879-3511ef9cee03 - Trace ID: 8cff0dbe-035c-4b3d-a5e4-41d5e19a6701
Error getting the secret: invalid_client: 7000222 - [2026-01-02 02:13:15Z]: 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: 21a40c94-cb6f-4d67-853d-a12625164601 Correlation ID: 3d452765-7b57-4eb4-bc6f-c84c1d15b7af Timestamp: 2026-01-02 02:13:15Z - Correlation ID: 3d452765-7b57-4eb4-bc6f-c84c1d15b7af - Trace ID: 21a40c94-cb6f-4d67-853d-a12625164601
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)