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-24 02:35:18Z]: 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: ec1839ab-35e7-4aca-9c99-7336331d2600 Correlation ID: c6ddc2f7-713e-45fd-bf41-31463f37c88e Timestamp: 2026-07-24 02:35:18Z - Correlation ID: c6ddc2f7-713e-45fd-bf41-31463f37c88e - Trace ID: ec1839ab-35e7-4aca-9c99-7336331d2600
(node:4480) [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-24 02:35:18Z]: 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: 2cdb6138-8931-4387-9b0e-aa8c77335000 Correlation ID: a25f73e9-1e6f-43de-a666-2e8fe34ca7ae Timestamp: 2026-07-24 02:35:18Z - Correlation ID: a25f73e9-1e6f-43de-a666-2e8fe34ca7ae - Trace ID: 2cdb6138-8931-4387-9b0e-aa8c77335000
Error getting the secret: invalid_client: 7000222 - [2026-07-24 02:35:18Z]: 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: 4911b5f4-aa9f-468b-87c1-397ec0fd1700 Correlation ID: a6d4d7f0-9a66-47f8-b2c2-053c07cfbf80 Timestamp: 2026-07-24 02:35:18Z - Correlation ID: a6d4d7f0-9a66-47f8-b2c2-053c07cfbf80 - Trace ID: 4911b5f4-aa9f-468b-87c1-397ec0fd1700
Error getting the secret: invalid_client: 7000222 - [2026-07-24 02:35:18Z]: 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: 6343877c-c975-4e3e-aa8e-dfc6db923100 Correlation ID: b13274ea-128b-45fb-81b1-da182ad04f05 Timestamp: 2026-07-24 02:35:18Z - Correlation ID: b13274ea-128b-45fb-81b1-da182ad04f05 - Trace ID: 6343877c-c975-4e3e-aa8e-dfc6db923100
Error getting the secret: invalid_client: 7000222 - [2026-07-24 02:35:19Z]: 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: 07f6f6af-6c82-4526-a6d5-2bf197761e00 Correlation ID: 2f1726dc-b4b1-4079-b884-d8c3215f3738 Timestamp: 2026-07-24 02:35:19Z - Correlation ID: 2f1726dc-b4b1-4079-b884-d8c3215f3738 - Trace ID: 07f6f6af-6c82-4526-a6d5-2bf197761e00
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)