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 12:37:15Z]: 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: 5b2ac344-d670-4d4b-af3e-e5923fd06000 Correlation ID: 21b12a0a-4508-47d0-b949-10eaea53349b Timestamp: 2026-07-24 12:37:15Z - Correlation ID: 21b12a0a-4508-47d0-b949-10eaea53349b - Trace ID: 5b2ac344-d670-4d4b-af3e-e5923fd06000
(node:3592) [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 12:37:15Z]: 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: f4492bd9-7f9d-44f5-aad0-aa8db22f0900 Correlation ID: e7cadd55-38f8-45ab-bf22-5f7b4c654b8c Timestamp: 2026-07-24 12:37:15Z - Correlation ID: e7cadd55-38f8-45ab-bf22-5f7b4c654b8c - Trace ID: f4492bd9-7f9d-44f5-aad0-aa8db22f0900
Error getting the secret: invalid_client: 7000222 - [2026-07-24 12:37:16Z]: 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: 0a601e5d-ff92-426f-a3e3-8e348dd31100 Correlation ID: 32df8561-d199-4f0b-a03a-f9a318fd53c3 Timestamp: 2026-07-24 12:37:16Z - Correlation ID: 32df8561-d199-4f0b-a03a-f9a318fd53c3 - Trace ID: 0a601e5d-ff92-426f-a3e3-8e348dd31100
Error getting the secret: invalid_client: 7000222 - [2026-07-24 12:37:16Z]: 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: 38813399-a8de-43fa-ae05-219e753f1b00 Correlation ID: 4ffa1d03-d664-4a7e-a4a6-dee7c251080f Timestamp: 2026-07-24 12:37:16Z - Correlation ID: 4ffa1d03-d664-4a7e-a4a6-dee7c251080f - Trace ID: 38813399-a8de-43fa-ae05-219e753f1b00
Error getting the secret: invalid_client: 7000222 - [2026-07-24 12:37:16Z]: 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: 637a18f8-597f-4bbf-82b4-15785b070f00 Correlation ID: 8ad2a840-cd88-4528-b19c-9b51c4360fc6 Timestamp: 2026-07-24 12:37:16Z - Correlation ID: 8ad2a840-cd88-4528-b19c-9b51c4360fc6 - Trace ID: 637a18f8-597f-4bbf-82b4-15785b070f00
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)