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-15 07:25:44Z]: 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: 8fec625c-724c-4ef1-bc61-3ecb0e930f00 Correlation ID: 96268dfc-6fec-4a46-a505-84d1a39733bf Timestamp: 2026-07-15 07:25:44Z - Correlation ID: 96268dfc-6fec-4a46-a505-84d1a39733bf - Trace ID: 8fec625c-724c-4ef1-bc61-3ecb0e930f00
(node:5556) [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-15 07:25:44Z]: 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: 86882ed1-3a8f-400b-8340-03594b2f0700 Correlation ID: 4a6d23d0-5584-470d-adec-5dcb18fa2bdc Timestamp: 2026-07-15 07:25:44Z - Correlation ID: 4a6d23d0-5584-470d-adec-5dcb18fa2bdc - Trace ID: 86882ed1-3a8f-400b-8340-03594b2f0700
Error getting the secret: invalid_client: 7000222 - [2026-07-15 07:25:44Z]: 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: d6d8c77b-72e3-4f42-9225-546626942100 Correlation ID: 0048c86e-d671-499e-88c3-3d7fce62a249 Timestamp: 2026-07-15 07:25:44Z - Correlation ID: 0048c86e-d671-499e-88c3-3d7fce62a249 - Trace ID: d6d8c77b-72e3-4f42-9225-546626942100
Error getting the secret: invalid_client: 7000222 - [2026-07-15 07:25:44Z]: 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: 123676b2-5303-4d87-a3cc-7d7ae72a0a00 Correlation ID: 92fd66ae-44c6-47cd-8a80-73fc7f27f11b Timestamp: 2026-07-15 07:25:44Z - Correlation ID: 92fd66ae-44c6-47cd-8a80-73fc7f27f11b - Trace ID: 123676b2-5303-4d87-a3cc-7d7ae72a0a00
Error getting the secret: invalid_client: 7000222 - [2026-07-15 07:25:44Z]: 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: 286d586a-4901-4271-8b94-17e9cf4e0b00 Correlation ID: 08d5d8ed-50ba-47ce-9658-d39623ecd40e Timestamp: 2026-07-15 07:25:44Z - Correlation ID: 08d5d8ed-50ba-47ce-9658-d39623ecd40e - Trace ID: 286d586a-4901-4271-8b94-17e9cf4e0b00
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)