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-25 09:34:33Z]: 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: 68a94aeb-7ae2-4a45-a983-0ccdd0421b00 Correlation ID: 172525ec-3779-4f7c-aabc-1875182614bc Timestamp: 2026-03-25 09:34:33Z - Correlation ID: 172525ec-3779-4f7c-aabc-1875182614bc - Trace ID: 68a94aeb-7ae2-4a45-a983-0ccdd0421b00
(node:356) [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-25 09:34:33Z]: 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: 53d4f8ac-9c94-452d-b88b-3ba699e20300 Correlation ID: d28aa3c2-183c-4780-83bf-28c8743f24d0 Timestamp: 2026-03-25 09:34:33Z - Correlation ID: d28aa3c2-183c-4780-83bf-28c8743f24d0 - Trace ID: 53d4f8ac-9c94-452d-b88b-3ba699e20300
Error getting the secret: invalid_client: 7000222 - [2026-03-25 09:34:33Z]: 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: 5759d9e6-43b7-4f5c-a2ec-d8db3a144400 Correlation ID: 1c92646c-3095-480b-92e5-57314fb22de7 Timestamp: 2026-03-25 09:34:33Z - Correlation ID: 1c92646c-3095-480b-92e5-57314fb22de7 - Trace ID: 5759d9e6-43b7-4f5c-a2ec-d8db3a144400
Error getting the secret: invalid_client: 7000222 - [2026-03-25 09:34:34Z]: 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: 487ff019-094b-46ab-acc0-c5dbd77b6000 Correlation ID: e9647c16-0537-443a-b3c3-39bcfcb3233d Timestamp: 2026-03-25 09:34:34Z - Correlation ID: e9647c16-0537-443a-b3c3-39bcfcb3233d - Trace ID: 487ff019-094b-46ab-acc0-c5dbd77b6000
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)