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-13 10:34:32Z]: 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: 6237658c-f893-4215-8665-90175a010600 Correlation ID: e4a4d6bd-e2b6-47b2-98ed-ba9cabe946fa Timestamp: 2026-07-13 10:34:32Z - Correlation ID: e4a4d6bd-e2b6-47b2-98ed-ba9cabe946fa - Trace ID: 6237658c-f893-4215-8665-90175a010600
(node:5544) [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-13 10:34:32Z]: 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: fcc6aa72-b918-4250-9b76-6b5d50651600 Correlation ID: f147ce58-05fc-42ec-b324-584b0ca92986 Timestamp: 2026-07-13 10:34:32Z - Correlation ID: f147ce58-05fc-42ec-b324-584b0ca92986 - Trace ID: fcc6aa72-b918-4250-9b76-6b5d50651600
Error getting the secret: invalid_client: 7000222 - [2026-07-13 10:34:33Z]: 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: 6237658c-f893-4215-8665-90176b010600 Correlation ID: 3b5045c6-fa81-496b-b72e-98a1975996e8 Timestamp: 2026-07-13 10:34:33Z - Correlation ID: 3b5045c6-fa81-496b-b72e-98a1975996e8 - Trace ID: 6237658c-f893-4215-8665-90176b010600
Error getting the secret: invalid_client: 7000222 - [2026-07-13 10:34:33Z]: 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: 18e6dc10-009f-4e25-9ef3-5037cd1e1600 Correlation ID: d3f9e00f-6981-4d73-9297-054db2b43ba0 Timestamp: 2026-07-13 10:34:33Z - Correlation ID: d3f9e00f-6981-4d73-9297-054db2b43ba0 - Trace ID: 18e6dc10-009f-4e25-9ef3-5037cd1e1600
Error getting the secret: invalid_client: 7000222 - [2026-07-13 10:34:34Z]: 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: 2de9bd2c-ce55-41be-8b39-74b19dcd1900 Correlation ID: 7e4c83bc-4af7-40b2-9d0b-12cc12202cc8 Timestamp: 2026-07-13 10:34:34Z - Correlation ID: 7e4c83bc-4af7-40b2-9d0b-12cc12202cc8 - Trace ID: 2de9bd2c-ce55-41be-8b39-74b19dcd1900
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)