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-21 06:38:00Z]: 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: 9f4cdef5-f32e-46e3-b893-9c6c3d940600 Correlation ID: 4dc875bd-af40-469e-8e5e-eb962ec8d390 Timestamp: 2026-07-21 06:38:00Z - Correlation ID: 4dc875bd-af40-469e-8e5e-eb962ec8d390 - Trace ID: 9f4cdef5-f32e-46e3-b893-9c6c3d940600
(node:1644) [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-21 06:38:00Z]: 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: 9f4cdef5-f32e-46e3-b893-9c6c40940600 Correlation ID: 8eb64ef5-93e8-4040-89fc-e31f2b87731d Timestamp: 2026-07-21 06:38:00Z - Correlation ID: 8eb64ef5-93e8-4040-89fc-e31f2b87731d - Trace ID: 9f4cdef5-f32e-46e3-b893-9c6c40940600
Error getting the secret: invalid_client: 7000222 - [2026-07-21 06:38:00Z]: 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: 47826c0a-2429-43a0-9f51-ad7a832d0a00 Correlation ID: 26bcb624-fd9b-476e-8b1a-9a9bda834150 Timestamp: 2026-07-21 06:38:00Z - Correlation ID: 26bcb624-fd9b-476e-8b1a-9a9bda834150 - Trace ID: 47826c0a-2429-43a0-9f51-ad7a832d0a00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 06:38:00Z]: 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: 4ce54b8c-8fa9-4004-8205-934d93490900 Correlation ID: b4dbe751-0b46-4325-bdb8-9f2c99c830e0 Timestamp: 2026-07-21 06:38:00Z - Correlation ID: b4dbe751-0b46-4325-bdb8-9f2c99c830e0 - Trace ID: 4ce54b8c-8fa9-4004-8205-934d93490900
Error getting the secret: invalid_client: 7000222 - [2026-07-21 06:38:00Z]: 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: 62d1fa92-b905-46cc-8f2d-145ba3161e00 Correlation ID: b3216a49-e2aa-4ff9-b093-586c69912d4e Timestamp: 2026-07-21 06:38:00Z - Correlation ID: b3216a49-e2aa-4ff9-b093-586c69912d4e - Trace ID: 62d1fa92-b905-46cc-8f2d-145ba3161e00
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)