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-10-03 19:23:57Z]: 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: 464fb757-3f53-4798-86fc-da56dc3a9700 Correlation ID: 30423c75-d9b5-48ac-a40b-76129afe06db Timestamp: 2026-10-03 19:23:57Z - Correlation ID: 30423c75-d9b5-48ac-a40b-76129afe06db - Trace ID: 464fb757-3f53-4798-86fc-da56dc3a9700
(node:5444) [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-10-03 19:23:58Z]: 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: dbd96066-9590-4fe2-ae5c-ebe43b028200 Correlation ID: 460e4029-04bc-46fd-a7fa-1ecc8d77ce3e Timestamp: 2026-10-03 19:23:58Z - Correlation ID: 460e4029-04bc-46fd-a7fa-1ecc8d77ce3e - Trace ID: dbd96066-9590-4fe2-ae5c-ebe43b028200
Error getting the secret: invalid_client: 7000222 - [2026-10-03 19:23:58Z]: 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: ec866dac-a324-4c76-a1b6-11944fff4d00 Correlation ID: db056991-8b23-4a06-b228-f6ff4d13b4cf Timestamp: 2026-10-03 19:23:58Z - Correlation ID: db056991-8b23-4a06-b228-f6ff4d13b4cf - Trace ID: ec866dac-a324-4c76-a1b6-11944fff4d00
Error getting the secret: invalid_client: 7000222 - [2026-10-03 19:23:58Z]: 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: 84c4212d-9f70-4175-ad20-deaafe888200 Correlation ID: 47f9cb25-e6aa-4fa5-ab04-aded197936a2 Timestamp: 2026-10-03 19:23:58Z - Correlation ID: 47f9cb25-e6aa-4fa5-ab04-aded197936a2 - Trace ID: 84c4212d-9f70-4175-ad20-deaafe888200
Error getting the secret: invalid_client: 7000222 - [2026-10-03 19:23:58Z]: 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: ec866dac-a324-4c76-a1b6-119457ff4d00 Correlation ID: 2176f0c3-90fc-4981-b888-3b718e2bd755 Timestamp: 2026-10-03 19:23:58Z - Correlation ID: 2176f0c3-90fc-4981-b888-3b718e2bd755 - Trace ID: ec866dac-a324-4c76-a1b6-119457ff4d00
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)