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-02-25 10:41:52Z]: 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: dee24480-58d9-4997-af04-530655350300 Correlation ID: 901ab089-b03f-400a-b61b-6314c705ea45 Timestamp: 2026-02-25 10:41:52Z - Correlation ID: 901ab089-b03f-400a-b61b-6314c705ea45 - Trace ID: dee24480-58d9-4997-af04-530655350300
(node:2548) [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-02-25 10:41:52Z]: 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: 63f2dcbd-82bb-4ba9-a0dd-f63daef28d00 Correlation ID: 1b5c005f-cc1f-4745-b5ae-5e9bf58fc949 Timestamp: 2026-02-25 10:41:52Z - Correlation ID: 1b5c005f-cc1f-4745-b5ae-5e9bf58fc949 - Trace ID: 63f2dcbd-82bb-4ba9-a0dd-f63daef28d00
Error getting the secret: invalid_client: 7000222 - [2026-02-25 10:41:53Z]: 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: b17a4d61-ece0-4672-a629-3d17047a9200 Correlation ID: 0fa4820a-7e32-4cb1-971f-73ef10fee72e Timestamp: 2026-02-25 10:41:53Z - Correlation ID: 0fa4820a-7e32-4cb1-971f-73ef10fee72e - Trace ID: b17a4d61-ece0-4672-a629-3d17047a9200
Error getting the secret: invalid_client: 7000222 - [2026-02-25 10:41:53Z]: 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: 63f2dcbd-82bb-4ba9-a0dd-f63dbff28d00 Correlation ID: 40e6e023-ef0a-408d-a317-45f89dfb91c5 Timestamp: 2026-02-25 10:41:53Z - Correlation ID: 40e6e023-ef0a-408d-a317-45f89dfb91c5 - Trace ID: 63f2dcbd-82bb-4ba9-a0dd-f63dbff28d00
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)