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-03 21:38:49Z]: 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: 5e8c7628-2c41-4c5d-b3f5-af4d271a4600 Correlation ID: 60976881-b17e-43c9-ac67-ab460c9341c9 Timestamp: 2026-07-03 21:38:49Z - Correlation ID: 60976881-b17e-43c9-ac67-ab460c9341c9 - Trace ID: 5e8c7628-2c41-4c5d-b3f5-af4d271a4600
(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-03 21:38:49Z]: 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: e1ddb261-27a3-46b8-b1b8-a28f9c660b00 Correlation ID: e4a27de6-4448-4106-aab1-623da1753a7a Timestamp: 2026-07-03 21:38:49Z - Correlation ID: e4a27de6-4448-4106-aab1-623da1753a7a - Trace ID: e1ddb261-27a3-46b8-b1b8-a28f9c660b00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 21:38:50Z]: 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: 4ed9af9f-1b59-4d6e-9f4b-db639b216400 Correlation ID: 0f85b144-9a46-4d43-91df-2a6cea26b905 Timestamp: 2026-07-03 21:38:50Z - Correlation ID: 0f85b144-9a46-4d43-91df-2a6cea26b905 - Trace ID: 4ed9af9f-1b59-4d6e-9f4b-db639b216400
Error getting the secret: invalid_client: 7000222 - [2026-07-03 21:38:50Z]: 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: 1d62eda4-fa5d-475e-a290-01b91165b800 Correlation ID: b06af9aa-ce86-4219-a16f-94998381ad6d Timestamp: 2026-07-03 21:38:50Z - Correlation ID: b06af9aa-ce86-4219-a16f-94998381ad6d - Trace ID: 1d62eda4-fa5d-475e-a290-01b91165b800
Error getting the secret: invalid_client: 7000222 - [2026-07-03 21:38:50Z]: 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: 1d62eda4-fa5d-475e-a290-01b91865b800 Correlation ID: ab8759af-118f-489b-9a96-4fe2ec9d1200 Timestamp: 2026-07-03 21:38:50Z - Correlation ID: ab8759af-118f-489b-9a96-4fe2ec9d1200 - Trace ID: 1d62eda4-fa5d-475e-a290-01b91865b800
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)