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-06-12 14:57: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: 0f99fd83-30bd-4e7c-a3a4-6f897be33000 Correlation ID: 4a7371cb-10f6-404f-ae28-447a8ff656aa Timestamp: 2026-06-12 14:57:22Z - Correlation ID: 4a7371cb-10f6-404f-ae28-447a8ff656aa - Trace ID: 0f99fd83-30bd-4e7c-a3a4-6f897be33000
(node:5872) [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-06-12 14:57: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: ad055b66-f7bb-4564-964b-5538f0c78100 Correlation ID: 2d6e27d1-dad1-49d3-9f88-2ae50d32478a Timestamp: 2026-06-12 14:57:22Z - Correlation ID: 2d6e27d1-dad1-49d3-9f88-2ae50d32478a - Trace ID: ad055b66-f7bb-4564-964b-5538f0c78100
Error getting the secret: invalid_client: 7000222 - [2026-06-12 14:57:23Z]: 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: 313d7d4b-86fa-47c5-bdb0-d5e951058400 Correlation ID: a86f37fa-2d7c-472a-b9a1-609ab1db1ede Timestamp: 2026-06-12 14:57:23Z - Correlation ID: a86f37fa-2d7c-472a-b9a1-609ab1db1ede - Trace ID: 313d7d4b-86fa-47c5-bdb0-d5e951058400
Error getting the secret: invalid_client: 7000222 - [2026-06-12 14:57:23Z]: 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: 0853eb67-e7ce-4787-ac14-07cb87528200 Correlation ID: bc49e5e7-a24a-484a-b294-97538c6d3b3f Timestamp: 2026-06-12 14:57:23Z - Correlation ID: bc49e5e7-a24a-484a-b294-97538c6d3b3f - Trace ID: 0853eb67-e7ce-4787-ac14-07cb87528200
Error getting the secret: invalid_client: 7000222 - [2026-06-12 14:57:23Z]: 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: 0faa10f9-c373-4b5d-9955-0d680cd67900 Correlation ID: 589940d3-4d97-46da-a917-4e9134d967c8 Timestamp: 2026-06-12 14:57:23Z - Correlation ID: 589940d3-4d97-46da-a917-4e9134d967c8 - Trace ID: 0faa10f9-c373-4b5d-9955-0d680cd67900
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)