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-19 03:32: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: 415a39a3-b87e-4c59-aa67-4607159d0f00 Correlation ID: 392fc42d-46e4-46e8-9dfb-26d51792ab20 Timestamp: 2026-07-19 03:32:04Z - Correlation ID: 392fc42d-46e4-46e8-9dfb-26d51792ab20 - Trace ID: 415a39a3-b87e-4c59-aa67-4607159d0f00
(node:5972) [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-19 03:32: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: 5c2b824c-d0ea-477a-b42c-da87ff0d0c00 Correlation ID: 286ef040-821f-4b19-9863-ee547c1c2e2e Timestamp: 2026-07-19 03:32:05Z - Correlation ID: 286ef040-821f-4b19-9863-ee547c1c2e2e - Trace ID: 5c2b824c-d0ea-477a-b42c-da87ff0d0c00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 03:32: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: 415a39a3-b87e-4c59-aa67-4607289d0f00 Correlation ID: c49c737f-ee0c-4f9b-9847-e40613b65293 Timestamp: 2026-07-19 03:32:05Z - Correlation ID: c49c737f-ee0c-4f9b-9847-e40613b65293 - Trace ID: 415a39a3-b87e-4c59-aa67-4607289d0f00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 03:32: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: ae857031-ba9d-4254-8c65-d7e5bb8b0d00 Correlation ID: 22a07b39-9a2d-4378-94bf-9973ba392454 Timestamp: 2026-07-19 03:32:05Z - Correlation ID: 22a07b39-9a2d-4378-94bf-9973ba392454 - Trace ID: ae857031-ba9d-4254-8c65-d7e5bb8b0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 03:32:06Z]: 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: 1c807dc6-d546-4668-bccd-5f1615520c00 Correlation ID: f61f4266-32f5-41fc-bacd-bdae2cd2fa79 Timestamp: 2026-07-19 03:32:06Z - Correlation ID: f61f4266-32f5-41fc-bacd-bdae2cd2fa79 - Trace ID: 1c807dc6-d546-4668-bccd-5f1615520c00
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)