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-01 06:56:35Z]: 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: 21d96322-b2f2-4c55-a0e7-fe56722d1b00 Correlation ID: f71f32b1-e86d-4c4a-bbaf-aceb667ab9ec Timestamp: 2026-07-01 06:56:35Z - Correlation ID: f71f32b1-e86d-4c4a-bbaf-aceb667ab9ec - Trace ID: 21d96322-b2f2-4c55-a0e7-fe56722d1b00
(node:3560) [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-01 06:56:36Z]: 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: f64d2763-1388-479b-a28c-5a7fedd96600 Correlation ID: 67d4ae0d-061b-4377-8e37-db59c78d514a Timestamp: 2026-07-01 06:56:36Z - Correlation ID: 67d4ae0d-061b-4377-8e37-db59c78d514a - Trace ID: f64d2763-1388-479b-a28c-5a7fedd96600
Error getting the secret: invalid_client: 7000222 - [2026-07-01 06:56:36Z]: 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: e75687a4-20b9-46d0-bda0-965d9fbd5f00 Correlation ID: 7c569a7e-6073-4704-8558-5a5dd7e80a2d Timestamp: 2026-07-01 06:56:36Z - Correlation ID: 7c569a7e-6073-4704-8558-5a5dd7e80a2d - Trace ID: e75687a4-20b9-46d0-bda0-965d9fbd5f00
Error getting the secret: invalid_client: 7000222 - [2026-07-01 06:56:37Z]: 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: f142d2fc-4536-42cf-8845-8a173bfb5c00 Correlation ID: f151dfd1-44ba-4d2c-a8cd-67fafca40b8b Timestamp: 2026-07-01 06:56:37Z - Correlation ID: f151dfd1-44ba-4d2c-a8cd-67fafca40b8b - Trace ID: f142d2fc-4536-42cf-8845-8a173bfb5c00
Error getting the secret: invalid_client: 7000222 - [2026-07-01 06:56:37Z]: 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: f142d2fc-4536-42cf-8845-8a1743fb5c00 Correlation ID: b57b3711-ac5d-4884-8d47-fd103f524094 Timestamp: 2026-07-01 06:56:37Z - Correlation ID: b57b3711-ac5d-4884-8d47-fd103f524094 - Trace ID: f142d2fc-4536-42cf-8845-8a1743fb5c00
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)