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 - [2025-12-29 15:14: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: d8a98c6b-d34d-4c3b-83d0-be2852e91c00 Correlation ID: c86099c8-b458-4bb3-a73b-28fb90565fa3 Timestamp: 2025-12-29 15:14:43Z - Correlation ID: c86099c8-b458-4bb3-a73b-28fb90565fa3 - Trace ID: d8a98c6b-d34d-4c3b-83d0-be2852e91c00
(node:2564) [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 - [2025-12-29 15:14: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: cf7cd71f-6dae-405f-931d-895b37a2d800 Correlation ID: 1dc055a6-5013-4400-aa21-630a323338e0 Timestamp: 2025-12-29 15:14:43Z - Correlation ID: 1dc055a6-5013-4400-aa21-630a323338e0 - Trace ID: cf7cd71f-6dae-405f-931d-895b37a2d800
Error getting the secret: invalid_client: 7000222 - [2025-12-29 15:14: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: 42153b32-9b25-4642-afa0-3510cda10600 Correlation ID: 6f84992b-013b-4ea5-90ec-517fa8c6218f Timestamp: 2025-12-29 15:14:44Z - Correlation ID: 6f84992b-013b-4ea5-90ec-517fa8c6218f - Trace ID: 42153b32-9b25-4642-afa0-3510cda10600
Error getting the secret: invalid_client: 7000222 - [2025-12-29 15:14: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: 2f2c93ff-6fb7-428c-9156-a17f7383d200 Correlation ID: 8a3b564f-6b04-45ab-8b1e-de6d18e199cb Timestamp: 2025-12-29 15:14:44Z - Correlation ID: 8a3b564f-6b04-45ab-8b1e-de6d18e199cb - Trace ID: 2f2c93ff-6fb7-428c-9156-a17f7383d200
Error getting the secret: invalid_client: 7000222 - [2025-12-29 15:14: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: 42153b32-9b25-4642-afa0-3510d3a10600 Correlation ID: c86abc42-f694-4347-b135-78a1887997c5 Timestamp: 2025-12-29 15:14:44Z - Correlation ID: c86abc42-f694-4347-b135-78a1887997c5 - Trace ID: 42153b32-9b25-4642-afa0-3510d3a10600
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)