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-23 08:32:24Z]: 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: b181163b-475c-4ddb-aae5-6dc600331e00 Correlation ID: 3a010957-7c2a-47d0-9f8b-20299aad313f Timestamp: 2026-07-23 08:32:24Z - Correlation ID: 3a010957-7c2a-47d0-9f8b-20299aad313f - Trace ID: b181163b-475c-4ddb-aae5-6dc600331e00
(node:1216) [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-23 08:32:24Z]: 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: 15f407a8-2896-42d8-8002-e4f7017e4100 Correlation ID: c0a46885-c444-4af6-aa7f-71ec4545a5bd Timestamp: 2026-07-23 08:32:24Z - Correlation ID: c0a46885-c444-4af6-aa7f-71ec4545a5bd - Trace ID: 15f407a8-2896-42d8-8002-e4f7017e4100
Error getting the secret: invalid_client: 7000222 - [2026-07-23 08:32:24Z]: 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: dd5b77e8-954d-4021-bdcf-0ac02d2e1000 Correlation ID: 95f5c375-03a2-4a37-a9f1-5152ff7d7cab Timestamp: 2026-07-23 08:32:24Z - Correlation ID: 95f5c375-03a2-4a37-a9f1-5152ff7d7cab - Trace ID: dd5b77e8-954d-4021-bdcf-0ac02d2e1000
Error getting the secret: invalid_client: 7000222 - [2026-07-23 08:32:24Z]: 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: b181163b-475c-4ddb-aae5-6dc607331e00 Correlation ID: c62290a1-30e7-4362-bdd3-067c8f1e3910 Timestamp: 2026-07-23 08:32:24Z - Correlation ID: c62290a1-30e7-4362-bdd3-067c8f1e3910 - Trace ID: b181163b-475c-4ddb-aae5-6dc607331e00
Error getting the secret: invalid_client: 7000222 - [2026-07-23 08:32:24Z]: 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: 34741c93-7726-4b9f-9d6f-6dd8a2733a00 Correlation ID: 45a39b07-8a5b-4530-b16b-2717c1d449d2 Timestamp: 2026-07-23 08:32:24Z - Correlation ID: 45a39b07-8a5b-4530-b16b-2717c1d449d2 - Trace ID: 34741c93-7726-4b9f-9d6f-6dd8a2733a00
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)