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-14 11:27:15Z]: 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: b548f860-c0bb-4508-8a4c-5f51f69e3800 Correlation ID: d7b86003-5fe5-4223-a2c0-dd0a320f6177 Timestamp: 2026-07-14 11:27:15Z - Correlation ID: d7b86003-5fe5-4223-a2c0-dd0a320f6177 - Trace ID: b548f860-c0bb-4508-8a4c-5f51f69e3800
(node:500) [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-14 11:27:15Z]: 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: 79c41ddb-05a7-44ea-b70d-147882f22400 Correlation ID: 31f5ea6f-9a66-418a-aae6-8b9b963fb053 Timestamp: 2026-07-14 11:27:15Z - Correlation ID: 31f5ea6f-9a66-418a-aae6-8b9b963fb053 - Trace ID: 79c41ddb-05a7-44ea-b70d-147882f22400
Error getting the secret: invalid_client: 7000222 - [2026-07-14 11:27: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: d08410d9-9f48-4450-be85-86aa69673800 Correlation ID: a73b41ec-6736-412d-9fce-b889e6203b08 Timestamp: 2026-07-14 11:27:16Z - Correlation ID: a73b41ec-6736-412d-9fce-b889e6203b08 - Trace ID: d08410d9-9f48-4450-be85-86aa69673800
Error getting the secret: invalid_client: 7000222 - [2026-07-14 11:27: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: 5fc38d98-9c5d-4fbd-922f-a3ecd8283700 Correlation ID: 4330f8e9-badf-44e1-ae66-e93542a98eb9 Timestamp: 2026-07-14 11:27:16Z - Correlation ID: 4330f8e9-badf-44e1-ae66-e93542a98eb9 - Trace ID: 5fc38d98-9c5d-4fbd-922f-a3ecd8283700
Error getting the secret: invalid_client: 7000222 - [2026-07-14 11:27: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: 2ea26926-f150-4de0-8a3f-3039428f2900 Correlation ID: 12b17ab3-5abe-48bb-8508-5ea6b1b174b3 Timestamp: 2026-07-14 11:27:16Z - Correlation ID: 12b17ab3-5abe-48bb-8508-5ea6b1b174b3 - Trace ID: 2ea26926-f150-4de0-8a3f-3039428f2900
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)