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-06-17 21:05:32Z]: 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: 4b34cf61-8cb0-48dd-9d22-0a0172507100 Correlation ID: f2574213-ab10-43de-b36f-aa97cdc9f2f4 Timestamp: 2026-06-17 21:05:32Z - Correlation ID: f2574213-ab10-43de-b36f-aa97cdc9f2f4 - Trace ID: 4b34cf61-8cb0-48dd-9d22-0a0172507100
(node:2656) [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-06-17 21:05:33Z]: 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: 4b34cf61-8cb0-48dd-9d22-0a0185507100 Correlation ID: 25189dcb-29bc-4dc5-81b4-711f4fba1447 Timestamp: 2026-06-17 21:05:33Z - Correlation ID: 25189dcb-29bc-4dc5-81b4-711f4fba1447 - Trace ID: 4b34cf61-8cb0-48dd-9d22-0a0185507100
Error getting the secret: invalid_client: 7000222 - [2026-06-17 21:05:33Z]: 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: c3662cc3-0a4a-4e07-af47-147b35a51000 Correlation ID: dee440a0-c846-4057-b867-861bc86a976c Timestamp: 2026-06-17 21:05:33Z - Correlation ID: dee440a0-c846-4057-b867-861bc86a976c - Trace ID: c3662cc3-0a4a-4e07-af47-147b35a51000
Error getting the secret: invalid_client: 7000222 - [2026-06-17 21:05:33Z]: 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: 02ac3d7e-b887-4c34-aa2a-2230834d0400 Correlation ID: 23800da2-81f5-4ef8-9e2c-114d39ffc7ef Timestamp: 2026-06-17 21:05:33Z - Correlation ID: 23800da2-81f5-4ef8-9e2c-114d39ffc7ef - Trace ID: 02ac3d7e-b887-4c34-aa2a-2230834d0400
Error getting the secret: invalid_client: 7000222 - [2026-06-17 21:05:34Z]: 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: 8175731d-3a8a-48a4-8350-bf3639620700 Correlation ID: a9332111-7598-4c6c-86e0-5e91fa79be80 Timestamp: 2026-06-17 21:05:34Z - Correlation ID: a9332111-7598-4c6c-86e0-5e91fa79be80 - Trace ID: 8175731d-3a8a-48a4-8350-bf3639620700
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)