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 - [2025-11-20 05:46: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: e7261319-52e1-4fd5-9aa9-1af814bc8000 Correlation ID: f89896dc-d6f1-408a-b05c-0a42999a253a Timestamp: 2025-11-20 05:46:52Z - Correlation ID: f89896dc-d6f1-408a-b05c-0a42999a253a - Trace ID: e7261319-52e1-4fd5-9aa9-1af814bc8000
(node:5768) [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 - [2025-11-20 05:46: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: e7261319-52e1-4fd5-9aa9-1af81fbc8000 Correlation ID: a6fdbe4e-24c7-4986-9033-5bfd8c13221d Timestamp: 2025-11-20 05:46:52Z - Correlation ID: a6fdbe4e-24c7-4986-9033-5bfd8c13221d - Trace ID: e7261319-52e1-4fd5-9aa9-1af81fbc8000
Error getting the secret: invalid_client: 7000222 - [2025-11-20 05:46: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: 015f32e5-afde-47f2-b2b8-eb3e3e22a700 Correlation ID: 75e592a8-10dd-4435-9e61-939d2259539b Timestamp: 2025-11-20 05:46:52Z - Correlation ID: 75e592a8-10dd-4435-9e61-939d2259539b - Trace ID: 015f32e5-afde-47f2-b2b8-eb3e3e22a700
Error getting the secret: invalid_client: 7000222 - [2025-11-20 05:46: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: 015f32e5-afde-47f2-b2b8-eb3e4622a700 Correlation ID: 9606c116-40d3-482a-bc98-a0d60d8ee535 Timestamp: 2025-11-20 05:46:53Z - Correlation ID: 9606c116-40d3-482a-bc98-a0d60d8ee535 - Trace ID: 015f32e5-afde-47f2-b2b8-eb3e4622a700
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)