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-21 00:28:51Z]: 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: ecb40442-a2f0-4f71-9419-ce211ea70d00 Correlation ID: ead79a93-c9d8-46f1-a1d7-3ae9a3488053 Timestamp: 2026-03-21 00:28:51Z - Correlation ID: ead79a93-c9d8-46f1-a1d7-3ae9a3488053 - Trace ID: ecb40442-a2f0-4f71-9419-ce211ea70d00
(node:2148) [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-21 00:28: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: e6e20ee6-d34f-4660-9f79-aa3f1b701900 Correlation ID: 6852d6a9-8c5a-48c1-8572-6d2338467a12 Timestamp: 2026-03-21 00:28:52Z - Correlation ID: 6852d6a9-8c5a-48c1-8572-6d2338467a12 - Trace ID: e6e20ee6-d34f-4660-9f79-aa3f1b701900
Error getting the secret: invalid_client: 7000222 - [2026-03-21 00:28: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: fe976255-e9ad-4eb1-b3f7-ac715a7a1900 Correlation ID: b0002079-b5b6-4a62-9353-e7b235d7f325 Timestamp: 2026-03-21 00:28:52Z - Correlation ID: b0002079-b5b6-4a62-9353-e7b235d7f325 - Trace ID: fe976255-e9ad-4eb1-b3f7-ac715a7a1900
Error getting the secret: invalid_client: 7000222 - [2026-03-21 00:28: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: a5241103-c136-4230-bca9-aff039201900 Correlation ID: 50fd928f-592c-4844-b357-b239780cac09 Timestamp: 2026-03-21 00:28:52Z - Correlation ID: 50fd928f-592c-4844-b357-b239780cac09 - Trace ID: a5241103-c136-4230-bca9-aff039201900
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)