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-27 08:33:58Z]: 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: 7e80e404-8e51-484d-b06b-424806740600 Correlation ID: f8069986-ebdc-4d82-8f4e-3b7b6f9a640f Timestamp: 2026-07-27 08:33:58Z - Correlation ID: f8069986-ebdc-4d82-8f4e-3b7b6f9a640f - Trace ID: 7e80e404-8e51-484d-b06b-424806740600
(node:3328) [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-27 08:33:58Z]: 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: e24f26bb-d717-49c8-be50-f95429ed0600 Correlation ID: a556fd7f-2579-4146-b80b-5f26d722395c Timestamp: 2026-07-27 08:33:58Z - Correlation ID: a556fd7f-2579-4146-b80b-5f26d722395c - Trace ID: e24f26bb-d717-49c8-be50-f95429ed0600
Error getting the secret: invalid_client: 7000222 - [2026-07-27 08:33: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: c563c714-af07-40e1-a1c5-b6d9c9e60700 Correlation ID: c4625c6f-0713-4a16-a5a6-9263b244c439 Timestamp: 2026-07-27 08:33:59Z - Correlation ID: c4625c6f-0713-4a16-a5a6-9263b244c439 - Trace ID: c563c714-af07-40e1-a1c5-b6d9c9e60700
Error getting the secret: invalid_client: 7000222 - [2026-07-27 08:33: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: 0a28f624-26ff-4a8d-9f8c-195333da0000 Correlation ID: 21156e5d-0436-4bf6-8893-f4b04bfa9439 Timestamp: 2026-07-27 08:33:59Z - Correlation ID: 21156e5d-0436-4bf6-8893-f4b04bfa9439 - Trace ID: 0a28f624-26ff-4a8d-9f8c-195333da0000
Error getting the secret: invalid_client: 7000222 - [2026-07-27 08:33: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: 07816390-4449-4862-949c-68d13b710500 Correlation ID: 3b1ec25a-7845-4803-bb43-0f7053a83791 Timestamp: 2026-07-27 08:33:59Z - Correlation ID: 3b1ec25a-7845-4803-bb43-0f7053a83791 - Trace ID: 07816390-4449-4862-949c-68d13b710500
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)