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-07 09:38:54Z]: 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: 6837054e-ce81-458a-98ae-a29b97744700 Correlation ID: 3a4f2647-d3c0-43c5-841b-b9a2af295ea5 Timestamp: 2026-07-07 09:38:54Z - Correlation ID: 3a4f2647-d3c0-43c5-841b-b9a2af295ea5 - Trace ID: 6837054e-ce81-458a-98ae-a29b97744700
(node:1256) [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-07 09:38:54Z]: 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: 5bdd4565-d615-4100-a060-fc01b3595100 Correlation ID: e2f4b6ec-8b14-4661-8fb7-8698bfe35722 Timestamp: 2026-07-07 09:38:54Z - Correlation ID: e2f4b6ec-8b14-4661-8fb7-8698bfe35722 - Trace ID: 5bdd4565-d615-4100-a060-fc01b3595100
Error getting the secret: invalid_client: 7000222 - [2026-07-07 09:38:55Z]: 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: 6837054e-ce81-458a-98ae-a29ba0744700 Correlation ID: 03bdea1f-09c3-482c-bbc8-e3fb193525f4 Timestamp: 2026-07-07 09:38:55Z - Correlation ID: 03bdea1f-09c3-482c-bbc8-e3fb193525f4 - Trace ID: 6837054e-ce81-458a-98ae-a29ba0744700
Error getting the secret: invalid_client: 7000222 - [2026-07-07 09:38:55Z]: 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: 8da4fd63-5efa-4280-b667-7554be494a00 Correlation ID: c0ae3a8e-eeb5-4aef-9370-e5136418bdc3 Timestamp: 2026-07-07 09:38:55Z - Correlation ID: c0ae3a8e-eeb5-4aef-9370-e5136418bdc3 - Trace ID: 8da4fd63-5efa-4280-b667-7554be494a00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 09:38:55Z]: 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: 031b1ae7-6c15-4f03-8ddf-d488cc723a00 Correlation ID: 3e2197c4-41b1-44a4-b4f7-240ad7e54037 Timestamp: 2026-07-07 09:38:55Z - Correlation ID: 3e2197c4-41b1-44a4-b4f7-240ad7e54037 - Trace ID: 031b1ae7-6c15-4f03-8ddf-d488cc723a00
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)