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-02-26 17:41:51Z]: 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: ca9b717b-616d-472c-90c6-5cf46de80900 Correlation ID: befdecb4-21db-4d00-a7a5-d92f32c0c66f Timestamp: 2026-02-26 17:41:51Z - Correlation ID: befdecb4-21db-4d00-a7a5-d92f32c0c66f - Trace ID: ca9b717b-616d-472c-90c6-5cf46de80900
(node:564) [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-02-26 17:41:52Z]: 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: af6a04a2-911e-4d1c-89be-1f0858952600 Correlation ID: 8996e651-75f6-4b46-9565-0350ed6ba4db Timestamp: 2026-02-26 17:41:52Z - Correlation ID: 8996e651-75f6-4b46-9565-0350ed6ba4db - Trace ID: af6a04a2-911e-4d1c-89be-1f0858952600
Error getting the secret: invalid_client: 7000222 - [2026-02-26 17:41:52Z]: 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: f99b13c0-5fad-4476-ba24-b9a634f20b00 Correlation ID: 456d17dd-3c99-46dc-a074-d8e0b7b390c5 Timestamp: 2026-02-26 17:41:52Z - Correlation ID: 456d17dd-3c99-46dc-a074-d8e0b7b390c5 - Trace ID: f99b13c0-5fad-4476-ba24-b9a634f20b00
Error getting the secret: invalid_client: 7000222 - [2026-02-26 17:41:52Z]: 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: a7fe24f8-112a-4e74-bf71-688529320300 Correlation ID: 277b0716-ceb9-46c6-b466-8ae30e5264b9 Timestamp: 2026-02-26 17:41:52Z - Correlation ID: 277b0716-ceb9-46c6-b466-8ae30e5264b9 - Trace ID: a7fe24f8-112a-4e74-bf71-688529320300
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)