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 18:48:28Z]: 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: 1f7d2c34-80ba-47bd-8605-2f7c56e11b00 Correlation ID: 3a06212e-c668-4e77-a82f-cd2234a088c5 Timestamp: 2026-07-01 18:48:28Z - Correlation ID: 3a06212e-c668-4e77-a82f-cd2234a088c5 - Trace ID: 1f7d2c34-80ba-47bd-8605-2f7c56e11b00
(node:3840) [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 18:48:28Z]: 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: 64038d88-c247-4b62-b028-fc2c4f317d00 Correlation ID: a845065d-359c-4227-9da4-5a0570162595 Timestamp: 2026-07-01 18:48:28Z - Correlation ID: a845065d-359c-4227-9da4-5a0570162595 - Trace ID: 64038d88-c247-4b62-b028-fc2c4f317d00
Error getting the secret: invalid_client: 7000222 - [2026-07-01 18:48:29Z]: 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: cb80ba27-51c5-4230-9345-171450107700 Correlation ID: c3e21f5f-f5f4-4b36-83cc-1cb89f5431d9 Timestamp: 2026-07-01 18:48:29Z - Correlation ID: c3e21f5f-f5f4-4b36-83cc-1cb89f5431d9 - Trace ID: cb80ba27-51c5-4230-9345-171450107700
Error getting the secret: invalid_client: 7000222 - [2026-07-01 18:48:29Z]: 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: eb82c1a7-3a80-4032-a614-5aedade91300 Correlation ID: 79a82b4c-10db-4906-9af6-544f1b9cebe3 Timestamp: 2026-07-01 18:48:29Z - Correlation ID: 79a82b4c-10db-4906-9af6-544f1b9cebe3 - Trace ID: eb82c1a7-3a80-4032-a614-5aedade91300
Error getting the secret: invalid_client: 7000222 - [2026-07-01 18:48:29Z]: 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: 46377446-ff8a-4b23-8ae5-8e3791a51200 Correlation ID: 4f9a6ad8-4afc-4dca-9a4d-1cad6de0b4a3 Timestamp: 2026-07-01 18:48:29Z - Correlation ID: 4f9a6ad8-4afc-4dca-9a4d-1cad6de0b4a3 - Trace ID: 46377446-ff8a-4b23-8ae5-8e3791a51200
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)