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-16 23:22:31Z]: 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: f60878ea-98f0-4532-ae6c-3455d1171500 Correlation ID: ebbefc73-7964-4182-95e6-6aa7a6b8cdcb Timestamp: 2026-07-16 23:22:31Z - Correlation ID: ebbefc73-7964-4182-95e6-6aa7a6b8cdcb - Trace ID: f60878ea-98f0-4532-ae6c-3455d1171500
(node:2960) [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-16 23:22:31Z]: 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: 0c90c9de-509c-4c96-b05d-c5501d9f1a00 Correlation ID: dc61c94f-cad2-4609-96f6-a0dcf1f452dc Timestamp: 2026-07-16 23:22:31Z - Correlation ID: dc61c94f-cad2-4609-96f6-a0dcf1f452dc - Trace ID: 0c90c9de-509c-4c96-b05d-c5501d9f1a00
Error getting the secret: invalid_client: 7000222 - [2026-07-16 23:22:31Z]: 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: b432e4da-2b97-4566-837f-259f704c3b00 Correlation ID: fc3d42a4-f89c-407d-8ef7-66833d85e901 Timestamp: 2026-07-16 23:22:31Z - Correlation ID: fc3d42a4-f89c-407d-8ef7-66833d85e901 - Trace ID: b432e4da-2b97-4566-837f-259f704c3b00
Error getting the secret: invalid_client: 7000222 - [2026-07-16 23:22:32Z]: 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: 04b08db3-a67d-4ac0-9036-b5aab0a51f00 Correlation ID: e219aa9e-4046-445e-a895-d81ce3c7d98e Timestamp: 2026-07-16 23:22:32Z - Correlation ID: e219aa9e-4046-445e-a895-d81ce3c7d98e - Trace ID: 04b08db3-a67d-4ac0-9036-b5aab0a51f00
Error getting the secret: invalid_client: 7000222 - [2026-07-16 23:22:32Z]: 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: d222dcea-7dd6-4b79-ab5c-c46321b23000 Correlation ID: a8c72d0f-ec24-4c94-921e-614a01857462 Timestamp: 2026-07-16 23:22:32Z - Correlation ID: a8c72d0f-ec24-4c94-921e-614a01857462 - Trace ID: d222dcea-7dd6-4b79-ab5c-c46321b23000
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)