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-06-18 18:52:17Z]: 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: fc0feae2-8337-42bb-a7c0-45d5f51c1300 Correlation ID: 510d28de-7cb1-48e2-b17e-3c4370cb948c Timestamp: 2026-06-18 18:52:17Z - Correlation ID: 510d28de-7cb1-48e2-b17e-3c4370cb948c - Trace ID: fc0feae2-8337-42bb-a7c0-45d5f51c1300
(node:3972) [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-06-18 18:52:17Z]: 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: fc0feae2-8337-42bb-a7c0-45d5f71c1300 Correlation ID: 378052a1-dec1-4dde-a4aa-c4924703de5e Timestamp: 2026-06-18 18:52:17Z - Correlation ID: 378052a1-dec1-4dde-a4aa-c4924703de5e - Trace ID: fc0feae2-8337-42bb-a7c0-45d5f71c1300
Error getting the secret: invalid_client: 7000222 - [2026-06-18 18:52:17Z]: 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: 698ecf08-e03d-4071-94df-808f3d108400 Correlation ID: 68efcd2c-7161-4de5-9e44-25687d1e5368 Timestamp: 2026-06-18 18:52:17Z - Correlation ID: 68efcd2c-7161-4de5-9e44-25687d1e5368 - Trace ID: 698ecf08-e03d-4071-94df-808f3d108400
Error getting the secret: invalid_client: 7000222 - [2026-06-18 18:52:17Z]: 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: 0376c4d5-4cb9-4cee-81bc-568fb33f0e00 Correlation ID: 34a73327-2ace-4886-a713-1ae449ea39e7 Timestamp: 2026-06-18 18:52:17Z - Correlation ID: 34a73327-2ace-4886-a713-1ae449ea39e7 - Trace ID: 0376c4d5-4cb9-4cee-81bc-568fb33f0e00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 18:52:18Z]: 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: 2ee65682-099d-493e-b7e2-0161aad90e00 Correlation ID: 95217161-680f-424c-899a-3921727fa1a1 Timestamp: 2026-06-18 18:52:18Z - Correlation ID: 95217161-680f-424c-899a-3921727fa1a1 - Trace ID: 2ee65682-099d-493e-b7e2-0161aad90e00
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)