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-12 18:34: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: d886f2e4-495d-427a-918e-591af53d0900 Correlation ID: 0e692c8f-8cb7-45c4-a247-8b7d2447a921 Timestamp: 2026-07-12 18:34:24Z - Correlation ID: 0e692c8f-8cb7-45c4-a247-8b7d2447a921 - Trace ID: d886f2e4-495d-427a-918e-591af53d0900
(node:4352) [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-12 18:34:25Z]: 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: dd8e283a-2a2b-49d0-8c26-e6bcd02b0e00 Correlation ID: 190c1a74-f932-478b-828a-6f78d14d9dc9 Timestamp: 2026-07-12 18:34:25Z - Correlation ID: 190c1a74-f932-478b-828a-6f78d14d9dc9 - Trace ID: dd8e283a-2a2b-49d0-8c26-e6bcd02b0e00
Error getting the secret: invalid_client: 7000222 - [2026-07-12 18:34:25Z]: 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: c287e72d-f279-4d80-83a7-48d6565c0a00 Correlation ID: 6f0cb392-a61d-4697-9521-b9557365fb57 Timestamp: 2026-07-12 18:34:25Z - Correlation ID: 6f0cb392-a61d-4697-9521-b9557365fb57 - Trace ID: c287e72d-f279-4d80-83a7-48d6565c0a00
Error getting the secret: invalid_client: 7000222 - [2026-07-12 18:34:25Z]: 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: e86370fd-c054-41ea-9cc5-a3a74ff90800 Correlation ID: 98356190-b8f4-4216-a5c6-2be90d64eba5 Timestamp: 2026-07-12 18:34:25Z - Correlation ID: 98356190-b8f4-4216-a5c6-2be90d64eba5 - Trace ID: e86370fd-c054-41ea-9cc5-a3a74ff90800
Error getting the secret: invalid_client: 7000222 - [2026-07-12 18:34:26Z]: 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: dd8e283a-2a2b-49d0-8c26-e6bcef2b0e00 Correlation ID: a035bc6d-e4f8-4e43-b8d3-df675cf00fab Timestamp: 2026-07-12 18:34:26Z - Correlation ID: a035bc6d-e4f8-4e43-b8d3-df675cf00fab - Trace ID: dd8e283a-2a2b-49d0-8c26-e6bcef2b0e00
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)