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-07 07:34:04Z]: 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: 08af7ddf-a633-4b01-a240-8d5433803c00 Correlation ID: 13bd43b2-668d-4b8f-a21e-991aa2e46ef6 Timestamp: 2026-07-07 07:34:04Z - Correlation ID: 13bd43b2-668d-4b8f-a21e-991aa2e46ef6 - Trace ID: 08af7ddf-a633-4b01-a240-8d5433803c00
(node:380) [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-07 07:34:04Z]: 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: 08af7ddf-a633-4b01-a240-8d5438803c00 Correlation ID: 7716b9a5-c9e4-4588-9833-f4c160b45ac4 Timestamp: 2026-07-07 07:34:04Z - Correlation ID: 7716b9a5-c9e4-4588-9833-f4c160b45ac4 - Trace ID: 08af7ddf-a633-4b01-a240-8d5438803c00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 07:34:04Z]: 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: 360a6dcb-6d33-47bf-8c0f-910a6e614700 Correlation ID: 28b869ae-9c1c-4307-8473-eb6f34e6dbb8 Timestamp: 2026-07-07 07:34:04Z - Correlation ID: 28b869ae-9c1c-4307-8473-eb6f34e6dbb8 - Trace ID: 360a6dcb-6d33-47bf-8c0f-910a6e614700
Error getting the secret: invalid_client: 7000222 - [2026-07-07 07:34:04Z]: 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: 69031c06-d9fc-4f99-b359-41d1c82f4c00 Correlation ID: 5f7cb44c-e508-4d6a-bb06-4ff85d1eb1dd Timestamp: 2026-07-07 07:34:04Z - Correlation ID: 5f7cb44c-e508-4d6a-bb06-4ff85d1eb1dd - Trace ID: 69031c06-d9fc-4f99-b359-41d1c82f4c00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 07:34:05Z]: 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: 717e8cc4-7da0-4dc0-8b99-e453f95e4300 Correlation ID: 1b3d114f-a42e-40b4-8ac9-ae75d819d663 Timestamp: 2026-07-07 07:34:05Z - Correlation ID: 1b3d114f-a42e-40b4-8ac9-ae75d819d663 - Trace ID: 717e8cc4-7da0-4dc0-8b99-e453f95e4300
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)