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-08 05:30:26Z]: 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: ada9fe1f-63eb-4bda-ae43-f5f7b1355100 Correlation ID: 72c80494-1fb6-4440-97e6-fbcb9c04442e Timestamp: 2026-07-08 05:30:26Z - Correlation ID: 72c80494-1fb6-4440-97e6-fbcb9c04442e - Trace ID: ada9fe1f-63eb-4bda-ae43-f5f7b1355100
(node:5940) [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-08 05:30:26Z]: 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: 4bc07d63-ffa7-44cb-abda-6e8c48ed5700 Correlation ID: 234da32b-3a0e-4a46-9021-a35d5ccb72b0 Timestamp: 2026-07-08 05:30:26Z - Correlation ID: 234da32b-3a0e-4a46-9021-a35d5ccb72b0 - Trace ID: 4bc07d63-ffa7-44cb-abda-6e8c48ed5700
Error getting the secret: invalid_client: 7000222 - [2026-07-08 05:30:26Z]: 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: 034158f6-339a-4fe5-8019-41783c9c0e00 Correlation ID: 0f51b5eb-c6f3-4b1d-84cd-12ca5d285817 Timestamp: 2026-07-08 05:30:26Z - Correlation ID: 0f51b5eb-c6f3-4b1d-84cd-12ca5d285817 - Trace ID: 034158f6-339a-4fe5-8019-41783c9c0e00
Error getting the secret: invalid_client: 7000222 - [2026-07-08 05:30:26Z]: 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: 034158f6-339a-4fe5-8019-4178409c0e00 Correlation ID: a1da0cba-1324-408d-9dba-6aad29330c85 Timestamp: 2026-07-08 05:30:26Z - Correlation ID: a1da0cba-1324-408d-9dba-6aad29330c85 - Trace ID: 034158f6-339a-4fe5-8019-4178409c0e00
Error getting the secret: invalid_client: 7000222 - [2026-07-08 05:30:27Z]: 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: 4bc07d63-ffa7-44cb-abda-6e8c53ed5700 Correlation ID: f2f56af9-b6f8-4ebc-956f-8400c0b3dbf1 Timestamp: 2026-07-08 05:30:27Z - Correlation ID: f2f56af9-b6f8-4ebc-956f-8400c0b3dbf1 - Trace ID: 4bc07d63-ffa7-44cb-abda-6e8c53ed5700
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)