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-17 03:25:21Z]: 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: 2c0218ac-7c57-4045-99ca-b559901d4100 Correlation ID: c98e4bc7-d64c-4a25-a260-f5bd19192666 Timestamp: 2026-07-17 03:25:21Z - Correlation ID: c98e4bc7-d64c-4a25-a260-f5bd19192666 - Trace ID: 2c0218ac-7c57-4045-99ca-b559901d4100
(node:4592) [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-17 03:25:21Z]: 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: 7a7f2a9b-a4ab-47f7-8a72-5bb1e5b34200 Correlation ID: 13f1f9a4-a4df-4939-acd8-f421527fbc18 Timestamp: 2026-07-17 03:25:21Z - Correlation ID: 13f1f9a4-a4df-4939-acd8-f421527fbc18 - Trace ID: 7a7f2a9b-a4ab-47f7-8a72-5bb1e5b34200
Error getting the secret: invalid_client: 7000222 - [2026-07-17 03:25:21Z]: 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: b962614f-c5d5-468a-a6fe-1b1d36642000 Correlation ID: 90f011d3-437c-4da6-b7b6-660948917b40 Timestamp: 2026-07-17 03:25:21Z - Correlation ID: 90f011d3-437c-4da6-b7b6-660948917b40 - Trace ID: b962614f-c5d5-468a-a6fe-1b1d36642000
Error getting the secret: invalid_client: 7000222 - [2026-07-17 03:25:22Z]: 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: 5db44076-ece3-4023-8897-924dde583c00 Correlation ID: 6b9633ac-0d3e-4bb2-8205-a4ea2864f0f7 Timestamp: 2026-07-17 03:25:22Z - Correlation ID: 6b9633ac-0d3e-4bb2-8205-a4ea2864f0f7 - Trace ID: 5db44076-ece3-4023-8897-924dde583c00
Error getting the secret: invalid_client: 7000222 - [2026-07-17 03:25:22Z]: 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: 2562868f-3b1a-43e8-a1d4-8cc3b9042a00 Correlation ID: e3663b54-1461-4327-9744-cf0d8c3b8b63 Timestamp: 2026-07-17 03:25:22Z - Correlation ID: e3663b54-1461-4327-9744-cf0d8c3b8b63 - Trace ID: 2562868f-3b1a-43e8-a1d4-8cc3b9042a00
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)