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-04-28 08:05:20Z]: 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: fac20338-e697-4db6-a93e-ad61e23b5800 Correlation ID: 0c6ad2a5-0dbf-41dd-a29c-eeb38a2bcfc1 Timestamp: 2026-04-28 08:05:20Z - Correlation ID: 0c6ad2a5-0dbf-41dd-a29c-eeb38a2bcfc1 - Trace ID: fac20338-e697-4db6-a93e-ad61e23b5800
(node:3320) [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-04-28 08:05:20Z]: 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: cb808130-90a6-4105-8688-8f95435c5a00 Correlation ID: 72a30a9d-2e6b-4a81-a939-0b8f3292ac22 Timestamp: 2026-04-28 08:05:20Z - Correlation ID: 72a30a9d-2e6b-4a81-a939-0b8f3292ac22 - Trace ID: cb808130-90a6-4105-8688-8f95435c5a00
Error getting the secret: invalid_client: 7000222 - [2026-04-28 08:05:20Z]: 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: 8fb41ad1-44f3-4480-8697-89d08ebf7500 Correlation ID: 3aafba66-90bf-4954-b3cf-acbe9de2d233 Timestamp: 2026-04-28 08:05:20Z - Correlation ID: 3aafba66-90bf-4954-b3cf-acbe9de2d233 - Trace ID: 8fb41ad1-44f3-4480-8697-89d08ebf7500
Error getting the secret: invalid_client: 7000222 - [2026-04-28 08:05:21Z]: 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: 8fb41ad1-44f3-4480-8697-89d098bf7500 Correlation ID: d0859a2b-36e8-4dff-be32-c0da6689b304 Timestamp: 2026-04-28 08:05:21Z - Correlation ID: d0859a2b-36e8-4dff-be32-c0da6689b304 - Trace ID: 8fb41ad1-44f3-4480-8697-89d098bf7500
Error getting the secret: invalid_client: 7000222 - [2026-04-28 08:05:21Z]: 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: cb808130-90a6-4105-8688-8f955c5c5a00 Correlation ID: 4664ce54-d8d8-4b5c-8b1e-a92326bbb899 Timestamp: 2026-04-28 08:05:21Z - Correlation ID: 4664ce54-d8d8-4b5c-8b1e-a92326bbb899 - Trace ID: cb808130-90a6-4105-8688-8f955c5c5a00
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)