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-21 15:18:46Z]: 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: 9f9c01cc-be92-4b23-be52-8c8195aa2700 Correlation ID: b2e1d255-7ad7-47c4-9e56-891166790b68 Timestamp: 2026-07-21 15:18:46Z - Correlation ID: b2e1d255-7ad7-47c4-9e56-891166790b68 - Trace ID: 9f9c01cc-be92-4b23-be52-8c8195aa2700
(node:4948) [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-21 15:18:47Z]: 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: 00ee136d-3ae6-4a06-9c16-8584f5a50c00 Correlation ID: dc4ef687-3fd2-455e-b82b-1d8a174f6f6b Timestamp: 2026-07-21 15:18:47Z - Correlation ID: dc4ef687-3fd2-455e-b82b-1d8a174f6f6b - Trace ID: 00ee136d-3ae6-4a06-9c16-8584f5a50c00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 15:18:47Z]: 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: e9f29da2-1cf7-4cb2-8674-0115c6091300 Correlation ID: f71daf55-51e3-487a-b090-61991fc637cd Timestamp: 2026-07-21 15:18:47Z - Correlation ID: f71daf55-51e3-487a-b090-61991fc637cd - Trace ID: e9f29da2-1cf7-4cb2-8674-0115c6091300
Error getting the secret: invalid_client: 7000222 - [2026-07-21 15:18:47Z]: 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: 3693f9b5-fbd6-48fa-90bb-f15cd9d41200 Correlation ID: f967e6b3-4c7f-415e-be82-c98f234b0422 Timestamp: 2026-07-21 15:18:47Z - Correlation ID: f967e6b3-4c7f-415e-be82-c98f234b0422 - Trace ID: 3693f9b5-fbd6-48fa-90bb-f15cd9d41200
Error getting the secret: invalid_client: 7000222 - [2026-07-21 15:18: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: d6ec9c83-ab09-4639-95e1-e5de19df1500 Correlation ID: d04adca1-0625-4beb-93ce-b181becc76bf Timestamp: 2026-07-21 15:18:48Z - Correlation ID: d04adca1-0625-4beb-93ce-b181becc76bf - Trace ID: d6ec9c83-ab09-4639-95e1-e5de19df1500
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)