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-06 17:28:34Z]: 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: c4621ebc-9a52-4b9c-8dd8-e05bf4260800 Correlation ID: da1686ea-967b-4fe6-8040-6016dacde9ab Timestamp: 2026-07-06 17:28:34Z - Correlation ID: da1686ea-967b-4fe6-8040-6016dacde9ab - Trace ID: c4621ebc-9a52-4b9c-8dd8-e05bf4260800
(node:500) [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-06 17:28:34Z]: 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: a8d8f651-198a-46fb-938c-22296eab3600 Correlation ID: 0996b3fd-0b75-4088-add5-310926f67554 Timestamp: 2026-07-06 17:28:34Z - Correlation ID: 0996b3fd-0b75-4088-add5-310926f67554 - Trace ID: a8d8f651-198a-46fb-938c-22296eab3600
Error getting the secret: invalid_client: 7000222 - [2026-07-06 17:28:34Z]: 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: a8d8f651-198a-46fb-938c-222973ab3600 Correlation ID: a9f7fdcb-9f4e-4135-8275-2edd163f7be0 Timestamp: 2026-07-06 17:28:34Z - Correlation ID: a9f7fdcb-9f4e-4135-8275-2edd163f7be0 - Trace ID: a8d8f651-198a-46fb-938c-222973ab3600
Error getting the secret: invalid_client: 7000222 - [2026-07-06 17:28:35Z]: 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: a817e1e6-0e66-44b0-ad74-5bb226882f00 Correlation ID: e822e2fe-0b09-4cc8-8d0d-968339eba818 Timestamp: 2026-07-06 17:28:35Z - Correlation ID: e822e2fe-0b09-4cc8-8d0d-968339eba818 - Trace ID: a817e1e6-0e66-44b0-ad74-5bb226882f00
Error getting the secret: invalid_client: 7000222 - [2026-07-06 17:28:35Z]: 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: c4621ebc-9a52-4b9c-8dd8-e05b08270800 Correlation ID: 3deb2998-5bcc-421f-b07b-20cefab1bbfb Timestamp: 2026-07-06 17:28:35Z - Correlation ID: 3deb2998-5bcc-421f-b07b-20cefab1bbfb - Trace ID: c4621ebc-9a52-4b9c-8dd8-e05b08270800
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)