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-22 07:17:14Z]: 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: a96fbe09-5506-4334-9363-b0134a971e00 Correlation ID: 90252a2f-24a9-4651-92ab-e2b8fb7436b0 Timestamp: 2026-03-22 07:17:14Z - Correlation ID: 90252a2f-24a9-4651-92ab-e2b8fb7436b0 - Trace ID: a96fbe09-5506-4334-9363-b0134a971e00
(node:2108) [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-22 07:17:15Z]: 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: f28e2463-669c-44e9-8408-7c1b28cb1100 Correlation ID: 5068da8f-be9b-42ee-a59b-45f23e4a0fd9 Timestamp: 2026-03-22 07:17:15Z - Correlation ID: 5068da8f-be9b-42ee-a59b-45f23e4a0fd9 - Trace ID: f28e2463-669c-44e9-8408-7c1b28cb1100
Error getting the secret: invalid_client: 7000222 - [2026-03-22 07:17:15Z]: 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: 8ca5a128-b7c9-47a5-b605-2a5db3021500 Correlation ID: 352d9d45-942f-442e-a342-99fd7da71ddd Timestamp: 2026-03-22 07:17:15Z - Correlation ID: 352d9d45-942f-442e-a342-99fd7da71ddd - Trace ID: 8ca5a128-b7c9-47a5-b605-2a5db3021500
Error getting the secret: invalid_client: 7000222 - [2026-03-22 07:17:15Z]: 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: f28e2463-669c-44e9-8408-7c1b30cb1100 Correlation ID: 6fa36a4d-73be-4bdd-b263-5d856da4ec49 Timestamp: 2026-03-22 07:17:15Z - Correlation ID: 6fa36a4d-73be-4bdd-b263-5d856da4ec49 - Trace ID: f28e2463-669c-44e9-8408-7c1b30cb1100
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)