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-10-05 08:26:01Z]: 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: 20b18261-2dff-4349-8613-02e90797dc00 Correlation ID: a31f04de-260d-4cbe-bcb4-a7304643ae3d Timestamp: 2026-10-05 08:26:01Z - Correlation ID: a31f04de-260d-4cbe-bcb4-a7304643ae3d - Trace ID: 20b18261-2dff-4349-8613-02e90797dc00
(node:1636) [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-10-05 08:26:01Z]: 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: 196616a9-853e-43dc-ac1e-86a231ca0100 Correlation ID: d0154eeb-21e9-441a-8eed-0cd622a612c2 Timestamp: 2026-10-05 08:26:01Z - Correlation ID: d0154eeb-21e9-441a-8eed-0cd622a612c2 - Trace ID: 196616a9-853e-43dc-ac1e-86a231ca0100
Error getting the secret: invalid_client: 7000222 - [2026-10-05 08:26:02Z]: 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: 0c243845-e788-40ae-a971-b0f875af7400 Correlation ID: 5d8f3e33-df32-44ec-9512-c4a19dd90d5d Timestamp: 2026-10-05 08:26:02Z - Correlation ID: 5d8f3e33-df32-44ec-9512-c4a19dd90d5d - Trace ID: 0c243845-e788-40ae-a971-b0f875af7400
Error getting the secret: invalid_client: 7000222 - [2026-10-05 08:26:02Z]: 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: 3628ddd7-0642-428d-8a81-d8e3c5b62b01 Correlation ID: 77f874da-ba8a-4e64-8ca7-1d3b43f2d38e Timestamp: 2026-10-05 08:26:02Z - Correlation ID: 77f874da-ba8a-4e64-8ca7-1d3b43f2d38e - Trace ID: 3628ddd7-0642-428d-8a81-d8e3c5b62b01
Error getting the secret: invalid_client: 7000222 - [2026-10-05 08:26:02Z]: 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: f72205c5-34c3-411e-8d0a-a73f1f4b8f00 Correlation ID: 689ae963-3e2f-4e92-b3db-57202245b234 Timestamp: 2026-10-05 08:26:02Z - Correlation ID: 689ae963-3e2f-4e92-b3db-57202245b234 - Trace ID: f72205c5-34c3-411e-8d0a-a73f1f4b8f00
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)