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-07 15:40:37Z]: 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: 839ad85a-17bf-4ee2-9dc0-5a517eee5400 Correlation ID: 72a963b6-9399-4ffe-a9ae-4af888493f27 Timestamp: 2026-07-07 15:40:37Z - Correlation ID: 72a963b6-9399-4ffe-a9ae-4af888493f27 - Trace ID: 839ad85a-17bf-4ee2-9dc0-5a517eee5400
(node:3808) [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-07 15:40:37Z]: 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: 97ad67c5-ce37-4386-a893-3745f21c5300 Correlation ID: 51a61716-3578-44b1-a3ed-fa87fff45e06 Timestamp: 2026-07-07 15:40:37Z - Correlation ID: 51a61716-3578-44b1-a3ed-fa87fff45e06 - Trace ID: 97ad67c5-ce37-4386-a893-3745f21c5300
Error getting the secret: invalid_client: 7000222 - [2026-07-07 15:40:38Z]: 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: ef27d141-3a2e-43d0-85f9-19a614c14e00 Correlation ID: 9a378a9f-4241-4129-b5da-0945271d5f8b Timestamp: 2026-07-07 15:40:38Z - Correlation ID: 9a378a9f-4241-4129-b5da-0945271d5f8b - Trace ID: ef27d141-3a2e-43d0-85f9-19a614c14e00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 15:40:38Z]: 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: 94d46251-2d5f-4da7-b249-969122154c00 Correlation ID: 36c4e0e4-bca8-4ea8-8165-fe92a238ce57 Timestamp: 2026-07-07 15:40:38Z - Correlation ID: 36c4e0e4-bca8-4ea8-8165-fe92a238ce57 - Trace ID: 94d46251-2d5f-4da7-b249-969122154c00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 15:40:38Z]: 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: 91d8dd6b-4a5f-4601-b8b2-79cc2e945100 Correlation ID: 64ad7d7a-26a5-4838-9f50-5bca1d59eba0 Timestamp: 2026-07-07 15:40:38Z - Correlation ID: 64ad7d7a-26a5-4838-9f50-5bca1d59eba0 - Trace ID: 91d8dd6b-4a5f-4601-b8b2-79cc2e945100
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)