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-24 16:29:44Z]: 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: 2ae00e1d-6191-48da-af22-bcac83e31700 Correlation ID: c5184e20-0342-47e2-b7ad-3c185c615e5d Timestamp: 2026-07-24 16:29:44Z - Correlation ID: c5184e20-0342-47e2-b7ad-3c185c615e5d - Trace ID: 2ae00e1d-6191-48da-af22-bcac83e31700
(node:616) [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-24 16:29:44Z]: 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: fcfc6be0-2c89-4e8f-a990-834ef26c1300 Correlation ID: 1407f69b-86bc-4aab-b291-4e0f10c4e7c1 Timestamp: 2026-07-24 16:29:44Z - Correlation ID: 1407f69b-86bc-4aab-b291-4e0f10c4e7c1 - Trace ID: fcfc6be0-2c89-4e8f-a990-834ef26c1300
Error getting the secret: invalid_client: 7000222 - [2026-07-24 16:29:44Z]: 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: 62d5a6ef-2ad7-45d5-8428-88eca3706500 Correlation ID: 245603be-0ba7-4d02-b1c4-54e4543bf4e0 Timestamp: 2026-07-24 16:29:44Z - Correlation ID: 245603be-0ba7-4d02-b1c4-54e4543bf4e0 - Trace ID: 62d5a6ef-2ad7-45d5-8428-88eca3706500
Error getting the secret: invalid_client: 7000222 - [2026-07-24 16:29:44Z]: 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: 8d2ff653-d4f4-48a4-9871-26dc17780d00 Correlation ID: 98c03e3c-009d-4713-a366-956c67c2be84 Timestamp: 2026-07-24 16:29:44Z - Correlation ID: 98c03e3c-009d-4713-a366-956c67c2be84 - Trace ID: 8d2ff653-d4f4-48a4-9871-26dc17780d00
Error getting the secret: invalid_client: 7000222 - [2026-07-24 16:29:45Z]: 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: 2ae00e1d-6191-48da-af22-bcacafe31700 Correlation ID: c6532f01-fc07-4ccd-b44d-cce86ee9b7fd Timestamp: 2026-07-24 16:29:45Z - Correlation ID: c6532f01-fc07-4ccd-b44d-cce86ee9b7fd - Trace ID: 2ae00e1d-6191-48da-af22-bcacafe31700
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)