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-01-02 08:29:53Z]: 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: 0d3bd438-485f-436e-99ea-7bce4ef55a01 Correlation ID: 101e467f-0fd2-417c-8f28-56dc35d6d6a8 Timestamp: 2026-01-02 08:29:53Z - Correlation ID: 101e467f-0fd2-417c-8f28-56dc35d6d6a8 - Trace ID: 0d3bd438-485f-436e-99ea-7bce4ef55a01
(node:3648) [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-01-02 08:29:54Z]: 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: f1ff362a-f869-47f8-8bad-bbe561a05a01 Correlation ID: 67e1aac7-13c5-4adb-81cd-9edbe9374938 Timestamp: 2026-01-02 08:29:54Z - Correlation ID: 67e1aac7-13c5-4adb-81cd-9edbe9374938 - Trace ID: f1ff362a-f869-47f8-8bad-bbe561a05a01
Error getting the secret: invalid_client: 7000222 - [2026-01-02 08:29:54Z]: 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: 0d3bd438-485f-436e-99ea-7bce63f55a01 Correlation ID: 060e9338-2f66-411a-97a7-30a0779f9d7c Timestamp: 2026-01-02 08:29:54Z - Correlation ID: 060e9338-2f66-411a-97a7-30a0779f9d7c - Trace ID: 0d3bd438-485f-436e-99ea-7bce63f55a01
Error getting the secret: invalid_client: 7000222 - [2026-01-02 08:29:54Z]: 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: 0d3bd438-485f-436e-99ea-7bce6bf55a01 Correlation ID: 520d6a17-e6a8-493f-87a3-7617e67d1a89 Timestamp: 2026-01-02 08:29:54Z - Correlation ID: 520d6a17-e6a8-493f-87a3-7617e67d1a89 - Trace ID: 0d3bd438-485f-436e-99ea-7bce6bf55a01
Error getting the secret: invalid_client: 7000222 - [2026-01-02 08:29:55Z]: 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: d32e69b4-326d-4e7b-9b56-83f794734001 Correlation ID: cfb93a6b-2b6a-419e-9a3b-f8ac6373791a Timestamp: 2026-01-02 08:29:55Z - Correlation ID: cfb93a6b-2b6a-419e-9a3b-f8ac6373791a - Trace ID: d32e69b4-326d-4e7b-9b56-83f794734001
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)