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-04-20 12:28:41Z]: 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: ed274d71-b52d-44fe-89a5-c9f193550300 Correlation ID: 12e9b240-15d1-4c5b-b89d-2870aa118246 Timestamp: 2026-04-20 12:28:41Z - Correlation ID: 12e9b240-15d1-4c5b-b89d-2870aa118246 - Trace ID: ed274d71-b52d-44fe-89a5-c9f193550300
(node:4392) [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-04-20 12:28:42Z]: 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: 80725df2-2c82-491a-a702-85d198e40d00 Correlation ID: 186aa4e7-9ac9-4ecb-a941-e426fab6be6c Timestamp: 2026-04-20 12:28:42Z - Correlation ID: 186aa4e7-9ac9-4ecb-a941-e426fab6be6c - Trace ID: 80725df2-2c82-491a-a702-85d198e40d00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 12:28:42Z]: 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: 89fa3903-87b0-4034-9d10-5a27fb3a0b00 Correlation ID: 530eb918-2fec-4ac6-873e-06cb40823fcc Timestamp: 2026-04-20 12:28:42Z - Correlation ID: 530eb918-2fec-4ac6-873e-06cb40823fcc - Trace ID: 89fa3903-87b0-4034-9d10-5a27fb3a0b00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 12:28:42Z]: 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: 01ba2dbd-867d-4a2a-bce9-150344cf0b00 Correlation ID: 9754a426-d5e2-4646-b1be-c79341e92c3a Timestamp: 2026-04-20 12:28:42Z - Correlation ID: 9754a426-d5e2-4646-b1be-c79341e92c3a - Trace ID: 01ba2dbd-867d-4a2a-bce9-150344cf0b00
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)