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-24 14:30:46Z]: 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: 64ba62a4-9515-4c29-8042-ae2b2d7e3400 Correlation ID: e1c76e2f-3339-4fcf-9a52-5aef7000ef1a Timestamp: 2026-07-24 14:30:46Z - Correlation ID: e1c76e2f-3339-4fcf-9a52-5aef7000ef1a - Trace ID: 64ba62a4-9515-4c29-8042-ae2b2d7e3400
(node:5400) [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-24 14:30:47Z]: 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: 01c0c170-b090-43e8-8003-fd133deb5d00 Correlation ID: 085535b6-c9da-4874-804d-7c8f1451e17c Timestamp: 2026-07-24 14:30:47Z - Correlation ID: 085535b6-c9da-4874-804d-7c8f1451e17c - Trace ID: 01c0c170-b090-43e8-8003-fd133deb5d00
Error getting the secret: invalid_client: 7000222 - [2026-07-24 14:30:47Z]: 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: 5e36e156-2102-440c-ab5f-a7671b7a4900 Correlation ID: 14be4c47-94e2-48ac-a956-1010a84de260 Timestamp: 2026-07-24 14:30:47Z - Correlation ID: 14be4c47-94e2-48ac-a956-1010a84de260 - Trace ID: 5e36e156-2102-440c-ab5f-a7671b7a4900
Error getting the secret: invalid_client: 7000222 - [2026-07-24 14:30:48Z]: 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: 10b07069-3b88-4477-a569-6b3c48b10f00 Correlation ID: bfd6df6e-3d99-4706-bda1-fe5a0f1ef26f Timestamp: 2026-07-24 14:30:48Z - Correlation ID: bfd6df6e-3d99-4706-bda1-fe5a0f1ef26f - Trace ID: 10b07069-3b88-4477-a569-6b3c48b10f00
Error getting the secret: invalid_client: 7000222 - [2026-07-24 14:30:48Z]: 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: 8034987e-ae13-475d-b29e-b9bb50e90100 Correlation ID: 22fa090e-2ee4-4777-8b0c-07af37d6deb7 Timestamp: 2026-07-24 14:30:48Z - Correlation ID: 22fa090e-2ee4-4777-8b0c-07af37d6deb7 - Trace ID: 8034987e-ae13-475d-b29e-b9bb50e90100
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)