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-18 05:46:40Z]: 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: a4a4bd82-59d8-4cc7-b211-936ef15d0000 Correlation ID: 82d4f53c-fb2e-488b-8d78-9bd9388269fa Timestamp: 2026-07-18 05:46:40Z - Correlation ID: 82d4f53c-fb2e-488b-8d78-9bd9388269fa - Trace ID: a4a4bd82-59d8-4cc7-b211-936ef15d0000
(node:5044) [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-18 05:46:40Z]: 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: 899be264-c9d6-45b0-9443-711618810100 Correlation ID: c9172637-8b93-43dd-bd2e-50670fe683c8 Timestamp: 2026-07-18 05:46:40Z - Correlation ID: c9172637-8b93-43dd-bd2e-50670fe683c8 - Trace ID: 899be264-c9d6-45b0-9443-711618810100
Error getting the secret: invalid_client: 7000222 - [2026-07-18 05:46:40Z]: 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: eb46633f-8076-4487-8b99-47e2d5262600 Correlation ID: f72b349f-a28d-426c-8b20-b7aa239aa88d Timestamp: 2026-07-18 05:46:40Z - Correlation ID: f72b349f-a28d-426c-8b20-b7aa239aa88d - Trace ID: eb46633f-8076-4487-8b99-47e2d5262600
Error getting the secret: invalid_client: 7000222 - [2026-07-18 05:46:41Z]: 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: c9e22281-4218-4a01-97fe-def531380000 Correlation ID: 5ea59466-a0bf-4e66-b598-e54ae1ff2aaa Timestamp: 2026-07-18 05:46:41Z - Correlation ID: 5ea59466-a0bf-4e66-b598-e54ae1ff2aaa - Trace ID: c9e22281-4218-4a01-97fe-def531380000
Error getting the secret: invalid_client: 7000222 - [2026-07-18 05:46:41Z]: 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: ba05b1bb-5a89-441d-8037-db6fe05a0100 Correlation ID: 8f310afc-5268-4f45-a321-d4c82d969283 Timestamp: 2026-07-18 05:46:41Z - Correlation ID: 8f310afc-5268-4f45-a321-d4c82d969283 - Trace ID: ba05b1bb-5a89-441d-8037-db6fe05a0100
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)