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-17 21:28:06Z]: 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: 90637dbf-2d50-42ac-a7b8-3347a6885500 Correlation ID: c6498639-3230-419f-9159-2be5b100747c Timestamp: 2026-07-17 21:28:06Z - Correlation ID: c6498639-3230-419f-9159-2be5b100747c - Trace ID: 90637dbf-2d50-42ac-a7b8-3347a6885500
(node:3168) [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-17 21:28:06Z]: 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: 6890072f-1cfe-4476-bb06-f6f4a60c4d00 Correlation ID: a75f2e0e-86d3-4dd1-ab39-4413c16324eb Timestamp: 2026-07-17 21:28:06Z - Correlation ID: a75f2e0e-86d3-4dd1-ab39-4413c16324eb - Trace ID: 6890072f-1cfe-4476-bb06-f6f4a60c4d00
Error getting the secret: invalid_client: 7000222 - [2026-07-17 21:28:06Z]: 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: c822769b-04a9-4a1e-b26e-b01e2af15700 Correlation ID: 826b173d-592b-4674-a4e8-eafecab55ccb Timestamp: 2026-07-17 21:28:06Z - Correlation ID: 826b173d-592b-4674-a4e8-eafecab55ccb - Trace ID: c822769b-04a9-4a1e-b26e-b01e2af15700
Error getting the secret: invalid_client: 7000222 - [2026-07-17 21:28:07Z]: 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: c92e3772-cf3c-4a38-9a42-71e6a6d63100 Correlation ID: c0660d97-48d4-4a2c-8f3f-5cf7406debb8 Timestamp: 2026-07-17 21:28:07Z - Correlation ID: c0660d97-48d4-4a2c-8f3f-5cf7406debb8 - Trace ID: c92e3772-cf3c-4a38-9a42-71e6a6d63100
Error getting the secret: invalid_client: 7000222 - [2026-07-17 21:28:07Z]: 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: 90637dbf-2d50-42ac-a7b8-3347c7885500 Correlation ID: 997e10e5-1292-4470-8584-bab500309835 Timestamp: 2026-07-17 21:28:07Z - Correlation ID: 997e10e5-1292-4470-8584-bab500309835 - Trace ID: 90637dbf-2d50-42ac-a7b8-3347c7885500
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)