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 01:42:28Z]: 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: 1d8dbd90-0830-4514-8ab5-f4348ce00a00 Correlation ID: 253d5a3a-6208-43d4-8e86-56198eb3ad7d Timestamp: 2026-07-03 01:42:28Z - Correlation ID: 253d5a3a-6208-43d4-8e86-56198eb3ad7d - Trace ID: 1d8dbd90-0830-4514-8ab5-f4348ce00a00
(node:776) [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 01:42:28Z]: 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: 1d8dbd90-0830-4514-8ab5-f4348ee00a00 Correlation ID: bf55c790-2cfc-46f5-bb68-436e6558a504 Timestamp: 2026-07-03 01:42:28Z - Correlation ID: bf55c790-2cfc-46f5-bb68-436e6558a504 - Trace ID: 1d8dbd90-0830-4514-8ab5-f4348ee00a00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 01:42:28Z]: 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: 5735a9be-b223-4ad6-a081-e3145c6a2500 Correlation ID: 03cfb285-a1d4-4a0f-9c3e-8c7e97093dff Timestamp: 2026-07-03 01:42:28Z - Correlation ID: 03cfb285-a1d4-4a0f-9c3e-8c7e97093dff - Trace ID: 5735a9be-b223-4ad6-a081-e3145c6a2500
Error getting the secret: invalid_client: 7000222 - [2026-07-03 01:42:29Z]: 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: 28fd7123-9ae3-4dc2-9c50-14cab9f35100 Correlation ID: abdf03e4-6442-4f48-929d-e677aea13ccc Timestamp: 2026-07-03 01:42:29Z - Correlation ID: abdf03e4-6442-4f48-929d-e677aea13ccc - Trace ID: 28fd7123-9ae3-4dc2-9c50-14cab9f35100
Error getting the secret: invalid_client: 7000222 - [2026-07-03 01:42:29Z]: 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: 40120840-a068-4651-9f0d-7105dc902000 Correlation ID: 866c07bd-3764-4676-ae36-3ddfaafdff5f Timestamp: 2026-07-03 01:42:29Z - Correlation ID: 866c07bd-3764-4676-ae36-3ddfaafdff5f - Trace ID: 40120840-a068-4651-9f0d-7105dc902000
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)