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-07-19 07:33:18Z]: 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: 1ec6eb13-331a-455d-be0e-aeb329771100 Correlation ID: 24d2f538-b124-41fb-8c5b-081094809bf2 Timestamp: 2026-07-19 07:33:18Z - Correlation ID: 24d2f538-b124-41fb-8c5b-081094809bf2 - Trace ID: 1ec6eb13-331a-455d-be0e-aeb329771100
(node:5600) [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-07-19 07:33:19Z]: 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: cc31b43d-a7de-44ef-9d91-f022aefa4600 Correlation ID: 16dba279-b8b9-48de-b153-679c1acbb6eb Timestamp: 2026-07-19 07:33:19Z - Correlation ID: 16dba279-b8b9-48de-b153-679c1acbb6eb - Trace ID: cc31b43d-a7de-44ef-9d91-f022aefa4600
Error getting the secret: invalid_client: 7000222 - [2026-07-19 07:33:19Z]: 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: a5928206-10de-4256-a134-5f85b5223c00 Correlation ID: 34a6f9c6-cf92-4e40-8d99-e3f77e8949f7 Timestamp: 2026-07-19 07:33:19Z - Correlation ID: 34a6f9c6-cf92-4e40-8d99-e3f77e8949f7 - Trace ID: a5928206-10de-4256-a134-5f85b5223c00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 07:33:19Z]: 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: 721ae98b-8733-41c1-8fc7-d1d3bf2d4600 Correlation ID: e4501a1f-af69-4d02-b4ec-b06ffc0122e3 Timestamp: 2026-07-19 07:33:19Z - Correlation ID: e4501a1f-af69-4d02-b4ec-b06ffc0122e3 - Trace ID: 721ae98b-8733-41c1-8fc7-d1d3bf2d4600
Error getting the secret: invalid_client: 7000222 - [2026-07-19 07:33:19Z]: 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: df32e280-8450-44da-96c1-a7bd79e91000 Correlation ID: 5c9f9704-11e1-4d6a-b483-a62a19e297f5 Timestamp: 2026-07-19 07:33:19Z - Correlation ID: 5c9f9704-11e1-4d6a-b483-a62a19e297f5 - Trace ID: df32e280-8450-44da-96c1-a7bd79e91000
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:30:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)