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-27 04:38:30Z]: 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: e7f4dbf0-4e35-426e-ac70-aa3a9dfb0200 Correlation ID: 36ecdda6-52cf-4524-9d4f-b59e3ffd2068 Timestamp: 2026-07-27 04:38:30Z - Correlation ID: 36ecdda6-52cf-4524-9d4f-b59e3ffd2068 - Trace ID: e7f4dbf0-4e35-426e-ac70-aa3a9dfb0200
(node:2424) [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-27 04:38:30Z]: 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: d5714364-d24a-4e44-b0e3-7b3e43ec0300 Correlation ID: 094c81bc-94de-4ace-84ca-3d152242be66 Timestamp: 2026-07-27 04:38:30Z - Correlation ID: 094c81bc-94de-4ace-84ca-3d152242be66 - Trace ID: d5714364-d24a-4e44-b0e3-7b3e43ec0300
Error getting the secret: invalid_client: 7000222 - [2026-07-27 04:38: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: a334e08e-da7b-4be3-8528-c8eec93a0300 Correlation ID: bddc710e-2781-47e4-8b01-f2d7ba6d3027 Timestamp: 2026-07-27 04:38:31Z - Correlation ID: bddc710e-2781-47e4-8b01-f2d7ba6d3027 - Trace ID: a334e08e-da7b-4be3-8528-c8eec93a0300
Error getting the secret: invalid_client: 7000222 - [2026-07-27 04:38: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: e7f4dbf0-4e35-426e-ac70-aa3aa9fb0200 Correlation ID: 4ce78020-87c5-40a9-a78f-040dd43b57e1 Timestamp: 2026-07-27 04:38:31Z - Correlation ID: 4ce78020-87c5-40a9-a78f-040dd43b57e1 - Trace ID: e7f4dbf0-4e35-426e-ac70-aa3aa9fb0200
Error getting the secret: invalid_client: 7000222 - [2026-07-27 04:38: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: b7eb95fd-21a2-49c3-8e28-2123286f0400 Correlation ID: 63756da3-7091-4e8e-8e0c-fe967dc0e2c6 Timestamp: 2026-07-27 04:38:31Z - Correlation ID: 63756da3-7091-4e8e-8e0c-fe967dc0e2c6 - Trace ID: b7eb95fd-21a2-49c3-8e28-2123286f0400
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)