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-03-05 05:07:10Z]: 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: 162999f8-5f74-4bfa-b98d-3bf737f94c00 Correlation ID: 9e8ed4dc-9a1d-402d-9511-d397c78805c6 Timestamp: 2026-03-05 05:07:10Z - Correlation ID: 9e8ed4dc-9a1d-402d-9511-d397c78805c6 - Trace ID: 162999f8-5f74-4bfa-b98d-3bf737f94c00
(node:3644) [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-03-05 05:07:10Z]: 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: 2107b1b7-6a79-4804-8518-ebc3426f2800 Correlation ID: 1ed5338d-466a-4a69-a11d-4e640f6c7a0c Timestamp: 2026-03-05 05:07:10Z - Correlation ID: 1ed5338d-466a-4a69-a11d-4e640f6c7a0c - Trace ID: 2107b1b7-6a79-4804-8518-ebc3426f2800
Error getting the secret: invalid_client: 7000222 - [2026-03-05 05:07:11Z]: 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: c658431a-036f-4f74-8c76-6832caf00e00 Correlation ID: 52a9c171-3114-4b71-bb7c-fe936cbf1a01 Timestamp: 2026-03-05 05:07:11Z - Correlation ID: 52a9c171-3114-4b71-bb7c-fe936cbf1a01 - Trace ID: c658431a-036f-4f74-8c76-6832caf00e00
Error getting the secret: invalid_client: 7000222 - [2026-03-05 05:07:11Z]: 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: c658431a-036f-4f74-8c76-6832d5f00e00 Correlation ID: 8a5934b9-942f-4de7-95ee-4ba4ebd1c63e Timestamp: 2026-03-05 05:07:11Z - Correlation ID: 8a5934b9-942f-4de7-95ee-4ba4ebd1c63e - Trace ID: c658431a-036f-4f74-8c76-6832d5f00e00
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)