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-07 21:46:36Z]: 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: 2b5cf69b-81dd-4199-b8e6-ba6b81331700 Correlation ID: da43d64f-b49f-494e-ae46-1fa673b8da2f Timestamp: 2026-07-07 21:46:36Z - Correlation ID: da43d64f-b49f-494e-ae46-1fa673b8da2f - Trace ID: 2b5cf69b-81dd-4199-b8e6-ba6b81331700
(node:452) [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-07 21:46:36Z]: 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: 9278c403-e9fc-4cc2-951e-32504f1a2c00 Correlation ID: 6173bef8-8ff1-4ec3-873e-29c087aa7ba1 Timestamp: 2026-07-07 21:46:36Z - Correlation ID: 6173bef8-8ff1-4ec3-873e-29c087aa7ba1 - Trace ID: 9278c403-e9fc-4cc2-951e-32504f1a2c00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 21:46:36Z]: 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: 59006fdb-5387-46b5-8a1f-838985391300 Correlation ID: d5e919d1-84db-48b7-9940-1683affb686a Timestamp: 2026-07-07 21:46:36Z - Correlation ID: d5e919d1-84db-48b7-9940-1683affb686a - Trace ID: 59006fdb-5387-46b5-8a1f-838985391300
Error getting the secret: invalid_client: 7000222 - [2026-07-07 21:46:36Z]: 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: 86d18675-5fca-42c6-bf0b-a04448fb1000 Correlation ID: bfd91dae-105a-48be-934a-f1627d160591 Timestamp: 2026-07-07 21:46:36Z - Correlation ID: bfd91dae-105a-48be-934a-f1627d160591 - Trace ID: 86d18675-5fca-42c6-bf0b-a04448fb1000
Error getting the secret: invalid_client: 7000222 - [2026-07-07 21:46:36Z]: 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: c8a8d21b-f695-43fe-ab4c-939ff6f05500 Correlation ID: d6ac5813-72ab-4768-8902-9a6b08e1fb09 Timestamp: 2026-07-07 21:46:36Z - Correlation ID: d6ac5813-72ab-4768-8902-9a6b08e1fb09 - Trace ID: c8a8d21b-f695-43fe-ab4c-939ff6f05500
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)