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-14 13:26: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: 0512e376-a226-404a-b342-92accd6c0b00 Correlation ID: fd32838c-92c1-4d38-8218-5fbd4e2a0e4d Timestamp: 2026-07-14 13:26:34Z - Correlation ID: fd32838c-92c1-4d38-8218-5fbd4e2a0e4d - Trace ID: 0512e376-a226-404a-b342-92accd6c0b00
(node:580) [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-14 13:26: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: 0512e376-a226-404a-b342-92acd16c0b00 Correlation ID: f8edeb78-9d45-4146-853d-1daa753e6857 Timestamp: 2026-07-14 13:26:34Z - Correlation ID: f8edeb78-9d45-4146-853d-1daa753e6857 - Trace ID: 0512e376-a226-404a-b342-92acd16c0b00
Error getting the secret: invalid_client: 7000222 - [2026-07-14 13:26: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: be2009cd-2898-4edf-a20d-5ec33ed91900 Correlation ID: fdc4858e-e7ed-42aa-a70d-5d9b0fd9ebc0 Timestamp: 2026-07-14 13:26:34Z - Correlation ID: fdc4858e-e7ed-42aa-a70d-5d9b0fd9ebc0 - Trace ID: be2009cd-2898-4edf-a20d-5ec33ed91900
Error getting the secret: invalid_client: 7000222 - [2026-07-14 13:26: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: 2278122f-761e-4e84-993d-e5415fc72f00 Correlation ID: 9ed1d51e-364c-4119-97ba-71771634d6e4 Timestamp: 2026-07-14 13:26:34Z - Correlation ID: 9ed1d51e-364c-4119-97ba-71771634d6e4 - Trace ID: 2278122f-761e-4e84-993d-e5415fc72f00
Error getting the secret: invalid_client: 7000222 - [2026-07-14 13:26: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: eccdf5e0-cef4-4d05-8471-44accb263f00 Correlation ID: cb10e70d-6215-4832-bc6b-f081f126da18 Timestamp: 2026-07-14 13:26:34Z - Correlation ID: cb10e70d-6215-4832-bc6b-f081f126da18 - Trace ID: eccdf5e0-cef4-4d05-8471-44accb263f00
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)