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 13:16:16Z]: 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: 0e9b372d-b19b-4098-bb9a-f3e047800400 Correlation ID: 959f21d3-c7af-4c5e-a70c-b540127d9b2a Timestamp: 2026-04-22 13:16:16Z - Correlation ID: 959f21d3-c7af-4c5e-a70c-b540127d9b2a - Trace ID: 0e9b372d-b19b-4098-bb9a-f3e047800400
(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-04-22 13:16:16Z]: 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: f9a1f149-a8d7-4999-b133-6508e32f0500 Correlation ID: 663d9ce9-acfc-4150-af3a-6bbb31ef13c3 Timestamp: 2026-04-22 13:16:16Z - Correlation ID: 663d9ce9-acfc-4150-af3a-6bbb31ef13c3 - Trace ID: f9a1f149-a8d7-4999-b133-6508e32f0500
Error getting the secret: invalid_client: 7000222 - [2026-04-22 13:16:16Z]: 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: f02d1c7a-5e08-4bff-84af-af87c3323a00 Correlation ID: dd78b6d0-6319-45d6-a043-79056a9e8711 Timestamp: 2026-04-22 13:16:16Z - Correlation ID: dd78b6d0-6319-45d6-a043-79056a9e8711 - Trace ID: f02d1c7a-5e08-4bff-84af-af87c3323a00
Error getting the secret: invalid_client: 7000222 - [2026-04-22 13:16:16Z]: 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: 5fdf73b7-e56c-47b9-a7ed-674580d20500 Correlation ID: da1f64a3-143b-4268-84ee-bed92577ae61 Timestamp: 2026-04-22 13:16:16Z - Correlation ID: da1f64a3-143b-4268-84ee-bed92577ae61 - Trace ID: 5fdf73b7-e56c-47b9-a7ed-674580d20500
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)