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-26 19:14:27Z]: 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: 03e302d6-a731-461f-be79-577ca81b4000 Correlation ID: cc484954-5f03-42f1-b4a2-ec5a44835fc3 Timestamp: 2026-04-26 19:14:27Z - Correlation ID: cc484954-5f03-42f1-b4a2-ec5a44835fc3 - Trace ID: 03e302d6-a731-461f-be79-577ca81b4000
(node:5800) [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-26 19:14:28Z]: 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: 0c640ae3-22c4-43b4-ad26-054c0ca52f00 Correlation ID: ced85758-e30f-4fbf-8699-55b3f7fa8eed Timestamp: 2026-04-26 19:14:28Z - Correlation ID: ced85758-e30f-4fbf-8699-55b3f7fa8eed - Trace ID: 0c640ae3-22c4-43b4-ad26-054c0ca52f00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 19:14:28Z]: 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: 260e9838-e9ed-4969-b8cf-22e17ba42200 Correlation ID: dd8cc43c-0215-400a-870a-797e9fe460e2 Timestamp: 2026-04-26 19:14:28Z - Correlation ID: dd8cc43c-0215-400a-870a-797e9fe460e2 - Trace ID: 260e9838-e9ed-4969-b8cf-22e17ba42200
Error getting the secret: invalid_client: 7000222 - [2026-04-26 19:14:29Z]: 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: f0fba660-dd8a-4b39-a61c-e3c58d102d00 Correlation ID: d41167a7-e1f1-49fa-aa46-c3460dc15529 Timestamp: 2026-04-26 19:14:29Z - Correlation ID: d41167a7-e1f1-49fa-aa46-c3460dc15529 - Trace ID: f0fba660-dd8a-4b39-a61c-e3c58d102d00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 19:14:29Z]: 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: 521198e1-c8c5-497d-abcc-38e1eada4e00 Correlation ID: c5030520-aa8b-4138-95e2-4cf8e74a5cc7 Timestamp: 2026-04-26 19:14:29Z - Correlation ID: c5030520-aa8b-4138-95e2-4cf8e74a5cc7 - Trace ID: 521198e1-c8c5-497d-abcc-38e1eada4e00
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)