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-03 03:40: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: 6505b101-871c-4e1f-8fe7-f69a07bd8900 Correlation ID: a3a0effd-dd31-4441-9e1e-bfc2cf593ee9 Timestamp: 2026-07-03 03:40:54Z - Correlation ID: a3a0effd-dd31-4441-9e1e-bfc2cf593ee9 - Trace ID: 6505b101-871c-4e1f-8fe7-f69a07bd8900
(node:5424) [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-03 03:40: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: f3c46740-31ca-40bb-9a6b-c37dcbd89500 Correlation ID: b4197ed0-a040-4f96-a251-a71f30dbd3ec Timestamp: 2026-07-03 03:40:54Z - Correlation ID: b4197ed0-a040-4f96-a251-a71f30dbd3ec - Trace ID: f3c46740-31ca-40bb-9a6b-c37dcbd89500
Error getting the secret: invalid_client: 7000222 - [2026-07-03 03:40: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: f3c46740-31ca-40bb-9a6b-c37dcdd89500 Correlation ID: 0c122d42-725a-4bd2-a371-c3d1139724de Timestamp: 2026-07-03 03:40:54Z - Correlation ID: 0c122d42-725a-4bd2-a371-c3d1139724de - Trace ID: f3c46740-31ca-40bb-9a6b-c37dcdd89500
Error getting the secret: invalid_client: 7000222 - [2026-07-03 03:40: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: 33dfefcd-7710-45c2-be90-5513cbf47a00 Correlation ID: 28d4e8ea-6a9b-4b5e-9bf7-4790688fd2ba Timestamp: 2026-07-03 03:40:55Z - Correlation ID: 28d4e8ea-6a9b-4b5e-9bf7-4790688fd2ba - Trace ID: 33dfefcd-7710-45c2-be90-5513cbf47a00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 03:40: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: 58b44776-d639-4e64-9173-89682dc41d00 Correlation ID: 8b3c104b-6188-4102-b85e-c65d2288724e Timestamp: 2026-07-03 03:40:55Z - Correlation ID: 8b3c104b-6188-4102-b85e-c65d2288724e - Trace ID: 58b44776-d639-4e64-9173-89682dc41d00
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)