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-05 03:37: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: eb58b9f0-9180-47b2-ab57-c9c933a52100 Correlation ID: 0463503c-8905-432a-bcb7-d689a51323e3 Timestamp: 2026-07-05 03:37:04Z - Correlation ID: 0463503c-8905-432a-bcb7-d689a51323e3 - Trace ID: eb58b9f0-9180-47b2-ab57-c9c933a52100
(node:1008) [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-05 03:37: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: db280dbd-5a1f-4ed4-9dbb-0f6c561b1400 Correlation ID: 845cf176-5fd4-4451-b4f5-49f669ba360f Timestamp: 2026-07-05 03:37:04Z - Correlation ID: 845cf176-5fd4-4451-b4f5-49f669ba360f - Trace ID: db280dbd-5a1f-4ed4-9dbb-0f6c561b1400
Error getting the secret: invalid_client: 7000222 - [2026-07-05 03:37: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: ed2ec95c-778f-4b96-a040-c4aec6511600 Correlation ID: 6cd2334b-093b-4f40-a9c9-e29e91f843b9 Timestamp: 2026-07-05 03:37:04Z - Correlation ID: 6cd2334b-093b-4f40-a9c9-e29e91f843b9 - Trace ID: ed2ec95c-778f-4b96-a040-c4aec6511600
Error getting the secret: invalid_client: 7000222 - [2026-07-05 03:37: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: ed847d89-687f-4602-b704-abb641eb1400 Correlation ID: 13946e6e-5e1c-4c90-9b6d-6d58fd44df43 Timestamp: 2026-07-05 03:37:05Z - Correlation ID: 13946e6e-5e1c-4c90-9b6d-6d58fd44df43 - Trace ID: ed847d89-687f-4602-b704-abb641eb1400
Error getting the secret: invalid_client: 7000222 - [2026-07-05 03:37: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: 537505ab-3c44-432b-810f-20dd9fd10f00 Correlation ID: 59c3d07c-f6cf-4657-9f91-79a86413a469 Timestamp: 2026-07-05 03:37:05Z - Correlation ID: 59c3d07c-f6cf-4657-9f91-79a86413a469 - Trace ID: 537505ab-3c44-432b-810f-20dd9fd10f00
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)