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-27 06:37: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: d109a7b2-c344-49c3-8d24-3d3ebc920400 Correlation ID: ef0a14f2-db69-4a88-881a-8f1d28258332 Timestamp: 2026-07-27 06:37:26Z - Correlation ID: ef0a14f2-db69-4a88-881a-8f1d28258332 - Trace ID: d109a7b2-c344-49c3-8d24-3d3ebc920400
(node:5792) [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-27 06:37: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: 6880681b-9ad7-4cf6-97ac-0e33b7f70500 Correlation ID: 901705c6-799f-4987-8424-9227ddb54ddc Timestamp: 2026-07-27 06:37:26Z - Correlation ID: 901705c6-799f-4987-8424-9227ddb54ddc - Trace ID: 6880681b-9ad7-4cf6-97ac-0e33b7f70500
Error getting the secret: invalid_client: 7000222 - [2026-07-27 06:37: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: ba84beb8-9d9c-4aa4-96b9-90d5fc5d0500 Correlation ID: 7d6746cc-a632-48d2-989a-61a88c2c8ff9 Timestamp: 2026-07-27 06:37:27Z - Correlation ID: 7d6746cc-a632-48d2-989a-61a88c2c8ff9 - Trace ID: ba84beb8-9d9c-4aa4-96b9-90d5fc5d0500
Error getting the secret: invalid_client: 7000222 - [2026-07-27 06:37: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: 8d5e3dfa-e48b-494c-b1bc-7571287b0500 Correlation ID: 206c864c-63a8-46e8-b37d-09ca919800a3 Timestamp: 2026-07-27 06:37:27Z - Correlation ID: 206c864c-63a8-46e8-b37d-09ca919800a3 - Trace ID: 8d5e3dfa-e48b-494c-b1bc-7571287b0500
Error getting the secret: invalid_client: 7000222 - [2026-07-27 06:37: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: 7f6f6705-aa16-41c0-86ba-0aaecac30500 Correlation ID: b082eb62-c91b-44af-877a-5d8d19914530 Timestamp: 2026-07-27 06:37:27Z - Correlation ID: b082eb62-c91b-44af-877a-5d8d19914530 - Trace ID: 7f6f6705-aa16-41c0-86ba-0aaecac30500
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)