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-02 02:50:22Z]: 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: b81cf6cd-023f-46ff-8aa0-8e14a8f68200 Correlation ID: ee0adbad-7e81-4573-94a1-9d28a9a5b40f Timestamp: 2026-07-02 02:50:22Z - Correlation ID: ee0adbad-7e81-4573-94a1-9d28a9a5b40f - Trace ID: b81cf6cd-023f-46ff-8aa0-8e14a8f68200
(node:5860) [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-02 02:50:22Z]: 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: 14175186-1146-4c85-be6b-85b7ace01d00 Correlation ID: 61e43609-1e7e-4508-af9c-f61675178dc7 Timestamp: 2026-07-02 02:50:22Z - Correlation ID: 61e43609-1e7e-4508-af9c-f61675178dc7 - Trace ID: 14175186-1146-4c85-be6b-85b7ace01d00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 02:50:22Z]: 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: a93cea30-32d9-4be2-9815-c17478850d00 Correlation ID: 551d3a46-c76c-4b29-9bea-a3fb88f49968 Timestamp: 2026-07-02 02:50:22Z - Correlation ID: 551d3a46-c76c-4b29-9bea-a3fb88f49968 - Trace ID: a93cea30-32d9-4be2-9815-c17478850d00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 02:50:22Z]: 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: edad8954-4ae8-49c5-8087-e75f07b60400 Correlation ID: 30af571a-6b0a-4ba6-b20a-62df6a95c055 Timestamp: 2026-07-02 02:50:22Z - Correlation ID: 30af571a-6b0a-4ba6-b20a-62df6a95c055 - Trace ID: edad8954-4ae8-49c5-8087-e75f07b60400
Error getting the secret: invalid_client: 7000222 - [2026-07-02 02:50:22Z]: 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: edad8954-4ae8-49c5-8087-e75f0cb60400 Correlation ID: 2f7d55ba-13f7-4af1-af40-2cd2ecac74c5 Timestamp: 2026-07-02 02:50:22Z - Correlation ID: 2f7d55ba-13f7-4af1-af40-2cd2ecac74c5 - Trace ID: edad8954-4ae8-49c5-8087-e75f0cb60400
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)