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-04-22 11:34:00Z]: 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: 3e044e0c-a96b-49f1-bf52-342b5c404900 Correlation ID: 09ac737a-6821-488f-8b79-3e48d95dc66f Timestamp: 2026-04-22 11:34:00Z - Correlation ID: 09ac737a-6821-488f-8b79-3e48d95dc66f - Trace ID: 3e044e0c-a96b-49f1-bf52-342b5c404900
(node:2000) [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-04-22 11:34:00Z]: 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: b0f80c38-8852-40f3-8448-5e743e945100 Correlation ID: 9aeab090-ea18-4847-83ea-1e664f3db0f5 Timestamp: 2026-04-22 11:34:00Z - Correlation ID: 9aeab090-ea18-4847-83ea-1e664f3db0f5 - Trace ID: b0f80c38-8852-40f3-8448-5e743e945100
Error getting the secret: invalid_client: 7000222 - [2026-04-22 11:34:01Z]: 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: fe4bd3ff-dfd9-4272-9e6b-c7476b4a5300 Correlation ID: 333718f6-a555-4e48-89ac-26754997162f Timestamp: 2026-04-22 11:34:01Z - Correlation ID: 333718f6-a555-4e48-89ac-26754997162f - Trace ID: fe4bd3ff-dfd9-4272-9e6b-c7476b4a5300
Error getting the secret: invalid_client: 7000222 - [2026-04-22 11:34:01Z]: 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: e2ff16ef-5271-463e-9efc-6b6c13332500 Correlation ID: 067aa40e-7a43-4139-b661-ec9c23850862 Timestamp: 2026-04-22 11:34:01Z - Correlation ID: 067aa40e-7a43-4139-b661-ec9c23850862 - Trace ID: e2ff16ef-5271-463e-9efc-6b6c13332500
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)