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-06 16:17: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: 7b7eb2b8-173a-4801-9b40-41e6cf20e500 Correlation ID: fef81d83-d64f-4290-85fd-6ac9584136ca Timestamp: 2026-10-06 16:17:42Z - Correlation ID: fef81d83-d64f-4290-85fd-6ac9584136ca - Trace ID: 7b7eb2b8-173a-4801-9b40-41e6cf20e500
(node:5028) [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-06 16:17: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: 0e49aa64-cdf2-4961-b650-06a2d1922e00 Correlation ID: a8bcc85f-b85e-4518-bca2-7d9e147a6a82 Timestamp: 2026-10-06 16:17:42Z - Correlation ID: a8bcc85f-b85e-4518-bca2-7d9e147a6a82 - Trace ID: 0e49aa64-cdf2-4961-b650-06a2d1922e00
Error getting the secret: invalid_client: 7000222 - [2026-10-06 16:17: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: b150c448-b930-42b8-8bf0-70fa336c2d00 Correlation ID: 46d526e0-e536-4560-9790-f7c89658aa4f Timestamp: 2026-10-06 16:17:42Z - Correlation ID: 46d526e0-e536-4560-9790-f7c89658aa4f - Trace ID: b150c448-b930-42b8-8bf0-70fa336c2d00
Error getting the secret: invalid_client: 7000222 - [2026-10-06 16:17: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: fb035477-8066-4979-b4e3-ae56d4ced600 Correlation ID: 358cf486-b270-4cf6-8943-1ecf82de9987 Timestamp: 2026-10-06 16:17:42Z - Correlation ID: 358cf486-b270-4cf6-8943-1ecf82de9987 - Trace ID: fb035477-8066-4979-b4e3-ae56d4ced600
Error getting the secret: invalid_client: 7000222 - [2026-10-06 16:17: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: b659440f-0d07-4090-93f6-37743ba50401 Correlation ID: 35845754-40aa-46e8-96c5-6c860892645e Timestamp: 2026-10-06 16:17:42Z - Correlation ID: 35845754-40aa-46e8-96c5-6c860892645e - Trace ID: b659440f-0d07-4090-93f6-37743ba50401
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)