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-09 19:23:42Z]: 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: c3a27e02-34f7-4a09-9ff9-fd334af28300 Correlation ID: 61513230-5497-41eb-949b-6c76bb65cb30 Timestamp: 2026-07-09 19:23:42Z - Correlation ID: 61513230-5497-41eb-949b-6c76bb65cb30 - Trace ID: c3a27e02-34f7-4a09-9ff9-fd334af28300
(node:3248) [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-09 19:23:42Z]: 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: df7a3b20-7282-49c9-8752-1a65fb277600 Correlation ID: c3e09a00-31ec-410e-af39-c5b51e541310 Timestamp: 2026-07-09 19:23:42Z - Correlation ID: c3e09a00-31ec-410e-af39-c5b51e541310 - Trace ID: df7a3b20-7282-49c9-8752-1a65fb277600
Error getting the secret: invalid_client: 7000222 - [2026-07-09 19:23:43Z]: 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: df7a3b20-7282-49c9-8752-1a6510287600 Correlation ID: 8831b06e-032e-4a58-97db-ecf2a134df0f Timestamp: 2026-07-09 19:23:43Z - Correlation ID: 8831b06e-032e-4a58-97db-ecf2a134df0f - Trace ID: df7a3b20-7282-49c9-8752-1a6510287600
Error getting the secret: invalid_client: 7000222 - [2026-07-09 19:23:43Z]: 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: cf8f8132-54f0-4200-9a95-fdee73319200 Correlation ID: 54b6a68a-efba-4936-9cc0-a413651b9daf Timestamp: 2026-07-09 19:23:43Z - Correlation ID: 54b6a68a-efba-4936-9cc0-a413651b9daf - Trace ID: cf8f8132-54f0-4200-9a95-fdee73319200
Error getting the secret: invalid_client: 7000222 - [2026-07-09 19:23: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: fe96a9ed-80f5-4e5a-8a58-b57c7dd52d00 Correlation ID: 1b761334-dbc2-4cf2-8457-6e830b43b116 Timestamp: 2026-07-09 19:23:44Z - Correlation ID: 1b761334-dbc2-4cf2-8457-6e830b43b116 - Trace ID: fe96a9ed-80f5-4e5a-8a58-b57c7dd52d00
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)