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-25 14:26:59Z]: 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: 5e14c8e5-d61c-4272-9e8c-82eb898c0800 Correlation ID: bfc39494-8208-4e1e-ab94-f34b5d883171 Timestamp: 2026-07-25 14:26:59Z - Correlation ID: bfc39494-8208-4e1e-ab94-f34b5d883171 - Trace ID: 5e14c8e5-d61c-4272-9e8c-82eb898c0800
(node:4464) [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-25 14:26:59Z]: 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: 8ed8fc25-aefd-4e2c-9026-b67728941800 Correlation ID: a26dc132-f63c-4f13-b52a-9d3a44f4059f Timestamp: 2026-07-25 14:26:59Z - Correlation ID: a26dc132-f63c-4f13-b52a-9d3a44f4059f - Trace ID: 8ed8fc25-aefd-4e2c-9026-b67728941800
Error getting the secret: invalid_client: 7000222 - [2026-07-25 14:27: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: 914aada1-86ae-45da-80b1-d53ae0c60600 Correlation ID: 56fefffd-33f7-4770-bc13-ba1c5cf0bdb7 Timestamp: 2026-07-25 14:27:00Z - Correlation ID: 56fefffd-33f7-4770-bc13-ba1c5cf0bdb7 - Trace ID: 914aada1-86ae-45da-80b1-d53ae0c60600
Error getting the secret: invalid_client: 7000222 - [2026-07-25 14:27: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: b6162ba2-f8b7-44c1-a9af-e4a3ae152b00 Correlation ID: 66991a30-bf6b-4808-a14c-3a95d26801fa Timestamp: 2026-07-25 14:27:00Z - Correlation ID: 66991a30-bf6b-4808-a14c-3a95d26801fa - Trace ID: b6162ba2-f8b7-44c1-a9af-e4a3ae152b00
Error getting the secret: invalid_client: 7000222 - [2026-07-25 14:27: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: 5e14c8e5-d61c-4272-9e8c-82eb908c0800 Correlation ID: 6cd77599-0c2d-497e-943e-9210df6fa899 Timestamp: 2026-07-25 14:27:00Z - Correlation ID: 6cd77599-0c2d-497e-943e-9210df6fa899 - Trace ID: 5e14c8e5-d61c-4272-9e8c-82eb908c0800
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)