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-15 01:29: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: 749e2c9a-bda3-456d-9674-a278daed0600 Correlation ID: 1d825c37-3bc1-4710-9443-de8691e89044 Timestamp: 2026-07-15 01:29:32Z - Correlation ID: 1d825c37-3bc1-4710-9443-de8691e89044 - Trace ID: 749e2c9a-bda3-456d-9674-a278daed0600
(node:608) [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-15 01:29: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: 352d74e6-c693-496a-ad3c-4ed7045b0700 Correlation ID: bd97db4f-1c0b-451b-8ce8-fb99b2587e6f Timestamp: 2026-07-15 01:29:32Z - Correlation ID: bd97db4f-1c0b-451b-8ce8-fb99b2587e6f - Trace ID: 352d74e6-c693-496a-ad3c-4ed7045b0700
Error getting the secret: invalid_client: 7000222 - [2026-07-15 01:29: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: 613c769e-295a-463b-96cf-02a1b13c0800 Correlation ID: 5336bfe8-a2f3-421b-a247-9393fc1b788c Timestamp: 2026-07-15 01:29:32Z - Correlation ID: 5336bfe8-a2f3-421b-a247-9393fc1b788c - Trace ID: 613c769e-295a-463b-96cf-02a1b13c0800
Error getting the secret: invalid_client: 7000222 - [2026-07-15 01:29: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: c8c6a9e4-283c-4c04-a0f5-e63d33c12400 Correlation ID: 63d1a36b-9d0a-4880-aac0-0d709fdf1274 Timestamp: 2026-07-15 01:29:32Z - Correlation ID: 63d1a36b-9d0a-4880-aac0-0d709fdf1274 - Trace ID: c8c6a9e4-283c-4c04-a0f5-e63d33c12400
Error getting the secret: invalid_client: 7000222 - [2026-07-15 01:29: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: 352d74e6-c693-496a-ad3c-4ed7115b0700 Correlation ID: d6c798f5-cf31-4987-afa1-94c0331b23ea Timestamp: 2026-07-15 01:29:32Z - Correlation ID: d6c798f5-cf31-4987-afa1-94c0331b23ea - Trace ID: 352d74e6-c693-496a-ad3c-4ed7115b0700
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)