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-26 22:26:48Z]: 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: 5098d169-21cb-4349-b53f-fbf179712000 Correlation ID: 673d3872-949e-44ac-bfd7-0569377a4b11 Timestamp: 2026-07-26 22:26:48Z - Correlation ID: 673d3872-949e-44ac-bfd7-0569377a4b11 - Trace ID: 5098d169-21cb-4349-b53f-fbf179712000
(node:684) [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-26 22:26:48Z]: 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: d3637200-6e34-43c1-9f30-e03ce7292900 Correlation ID: d0a18e3a-4d97-4838-a91a-63a4cfcd325f Timestamp: 2026-07-26 22:26:48Z - Correlation ID: d0a18e3a-4d97-4838-a91a-63a4cfcd325f - Trace ID: d3637200-6e34-43c1-9f30-e03ce7292900
Error getting the secret: invalid_client: 7000222 - [2026-07-26 22:26:48Z]: 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: 41c9a16b-c8d4-440b-b2b5-c11713a02700 Correlation ID: 3a5f7680-84d0-431f-8033-6014e1f8d497 Timestamp: 2026-07-26 22:26:48Z - Correlation ID: 3a5f7680-84d0-431f-8033-6014e1f8d497 - Trace ID: 41c9a16b-c8d4-440b-b2b5-c11713a02700
Error getting the secret: invalid_client: 7000222 - [2026-07-26 22:26:49Z]: 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: d3637200-6e34-43c1-9f30-e03ce9292900 Correlation ID: 05b96a97-8723-4749-9212-08614648ad82 Timestamp: 2026-07-26 22:26:49Z - Correlation ID: 05b96a97-8723-4749-9212-08614648ad82 - Trace ID: d3637200-6e34-43c1-9f30-e03ce9292900
Error getting the secret: invalid_client: 7000222 - [2026-07-26 22:26:49Z]: 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: 41c9a16b-c8d4-440b-b2b5-c11718a02700 Correlation ID: fa54c87c-a0d5-4dd0-b27f-46f5dbfb7af6 Timestamp: 2026-07-26 22:26:49Z - Correlation ID: fa54c87c-a0d5-4dd0-b27f-46f5dbfb7af6 - Trace ID: 41c9a16b-c8d4-440b-b2b5-c11718a02700
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)