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-14 21:33:56Z]: 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: fdf8a0da-3b38-4024-aa7e-0db9cfc30200 Correlation ID: 73aac56e-0aa7-4625-b990-15187b227416 Timestamp: 2025-11-14 21:33:56Z - Correlation ID: 73aac56e-0aa7-4625-b990-15187b227416 - Trace ID: fdf8a0da-3b38-4024-aa7e-0db9cfc30200
(node:32) [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-14 21:33:56Z]: 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: fb49c6a7-7369-4008-ae79-49477c911a00 Correlation ID: 992433e7-fe24-44aa-b8ac-22659bc9f066 Timestamp: 2025-11-14 21:33:56Z - Correlation ID: 992433e7-fe24-44aa-b8ac-22659bc9f066 - Trace ID: fb49c6a7-7369-4008-ae79-49477c911a00
Error getting the secret: invalid_client: 7000222 - [2025-11-14 21:33:57Z]: 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: 42dd35a5-3517-4659-b688-774b71265d00 Correlation ID: 9197a974-75ae-4411-b30d-97835968ed1f Timestamp: 2025-11-14 21:33:57Z - Correlation ID: 9197a974-75ae-4411-b30d-97835968ed1f - Trace ID: 42dd35a5-3517-4659-b688-774b71265d00
Error getting the secret: invalid_client: 7000222 - [2025-11-14 21:33:57Z]: 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: 1564e7aa-19e1-4809-bbf3-44f709755500 Correlation ID: c2e4894f-de12-4494-9518-4cef3ff296ba Timestamp: 2025-11-14 21:33:57Z - Correlation ID: c2e4894f-de12-4494-9518-4cef3ff296ba - Trace ID: 1564e7aa-19e1-4809-bbf3-44f709755500
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)