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-18 19:46:42Z]: 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: d91b3ad4-1003-425e-81d1-77b2c41b3d00 Correlation ID: 86d9f116-60c6-4061-87ef-5ddf9ea24fdb Timestamp: 2026-07-18 19:46:42Z - Correlation ID: 86d9f116-60c6-4061-87ef-5ddf9ea24fdb - Trace ID: d91b3ad4-1003-425e-81d1-77b2c41b3d00
(node:3564) [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-18 19:46:42Z]: 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: d91b3ad4-1003-425e-81d1-77b2c71b3d00 Correlation ID: 31d5f617-9330-4650-9ed3-05c38c33d563 Timestamp: 2026-07-18 19:46:42Z - Correlation ID: 31d5f617-9330-4650-9ed3-05c38c33d563 - Trace ID: d91b3ad4-1003-425e-81d1-77b2c71b3d00
Error getting the secret: invalid_client: 7000222 - [2026-07-18 19:46:42Z]: 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: 7284acb8-1521-4bec-90d4-335ad8eb0a00 Correlation ID: fc3c9cf6-fa61-4627-9b2b-f19d071390be Timestamp: 2026-07-18 19:46:42Z - Correlation ID: fc3c9cf6-fa61-4627-9b2b-f19d071390be - Trace ID: 7284acb8-1521-4bec-90d4-335ad8eb0a00
Error getting the secret: invalid_client: 7000222 - [2026-07-18 19:46:42Z]: 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: ccfa3445-2885-4fe5-b880-62bcdc624200 Correlation ID: ea37a14b-03ec-420b-8dd6-193d91737e61 Timestamp: 2026-07-18 19:46:42Z - Correlation ID: ea37a14b-03ec-420b-8dd6-193d91737e61 - Trace ID: ccfa3445-2885-4fe5-b880-62bcdc624200
Error getting the secret: invalid_client: 7000222 - [2026-07-18 19:46:43Z]: 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: 634d442c-6659-41a7-8a41-860dfe220c00 Correlation ID: b3bc985d-8e94-4606-9538-c1f075c51db2 Timestamp: 2026-07-18 19:46:43Z - Correlation ID: b3bc985d-8e94-4606-9538-c1f075c51db2 - Trace ID: 634d442c-6659-41a7-8a41-860dfe220c00
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)