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-04-27 01:05:55Z]: 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: 86cb399a-268f-4b08-a790-4aaf04dd2e00 Correlation ID: d45ce8d2-5603-4619-81ae-1b73ea3cb2e7 Timestamp: 2026-04-27 01:05:55Z - Correlation ID: d45ce8d2-5603-4619-81ae-1b73ea3cb2e7 - Trace ID: 86cb399a-268f-4b08-a790-4aaf04dd2e00
(node:1976) [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-04-27 01:05:55Z]: 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: 115d1509-2a8a-4cf7-9ae0-94b30fb43200 Correlation ID: 9f89f664-fe66-476c-b1a9-8c90b35e2617 Timestamp: 2026-04-27 01:05:55Z - Correlation ID: 9f89f664-fe66-476c-b1a9-8c90b35e2617 - Trace ID: 115d1509-2a8a-4cf7-9ae0-94b30fb43200
Error getting the secret: invalid_client: 7000222 - [2026-04-27 01:05:55Z]: 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: 571ba0db-6361-41f8-a09a-6d1011e32900 Correlation ID: 145593f2-5def-465d-b1db-014cfbc6fb2f Timestamp: 2026-04-27 01:05:55Z - Correlation ID: 145593f2-5def-465d-b1db-014cfbc6fb2f - Trace ID: 571ba0db-6361-41f8-a09a-6d1011e32900
Error getting the secret: invalid_client: 7000222 - [2026-04-27 01:05:55Z]: 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: 37355499-12fb-46e1-8bfa-4f5d124b2700 Correlation ID: 0d7c6b24-c496-4b41-86b1-9bdeb030daaf Timestamp: 2026-04-27 01:05:55Z - Correlation ID: 0d7c6b24-c496-4b41-86b1-9bdeb030daaf - Trace ID: 37355499-12fb-46e1-8bfa-4f5d124b2700
Error getting the secret: invalid_client: 7000222 - [2026-04-27 01:05:55Z]: 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: d5f3752c-8344-462a-b6f5-ead3af9d5300 Correlation ID: f1c0ceaf-0add-4568-9bce-12e4b6606523 Timestamp: 2026-04-27 01:05:55Z - Correlation ID: f1c0ceaf-0add-4568-9bce-12e4b6606523 - Trace ID: d5f3752c-8344-462a-b6f5-ead3af9d5300
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)