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-02 23:43:42Z]: 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: c8854395-1c47-45a9-983a-c225403a1400 Correlation ID: 31bb884e-bca9-48f3-ba3f-4994dcd6d0f6 Timestamp: 2026-07-02 23:43:42Z - Correlation ID: 31bb884e-bca9-48f3-ba3f-4994dcd6d0f6 - Trace ID: c8854395-1c47-45a9-983a-c225403a1400
(node:3560) [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-02 23:43:42Z]: 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: 6181952e-00a0-480c-8f5b-8053983e9e00 Correlation ID: 5ece94e4-a36e-4ad1-8b04-706e2bbe4974 Timestamp: 2026-07-02 23:43:42Z - Correlation ID: 5ece94e4-a36e-4ad1-8b04-706e2bbe4974 - Trace ID: 6181952e-00a0-480c-8f5b-8053983e9e00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 23:43:42Z]: 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: 8effb6ab-01bf-45ae-8b13-28025f6c1e00 Correlation ID: 96000d26-5570-4ceb-aa57-4d55548a87f5 Timestamp: 2026-07-02 23:43:42Z - Correlation ID: 96000d26-5570-4ceb-aa57-4d55548a87f5 - Trace ID: 8effb6ab-01bf-45ae-8b13-28025f6c1e00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 23:43:43Z]: 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: b06eff3f-74d9-428c-a868-c44567e6a600 Correlation ID: 6c7b46d4-eb52-4077-b7a4-3e025c094878 Timestamp: 2026-07-02 23:43:43Z - Correlation ID: 6c7b46d4-eb52-4077-b7a4-3e025c094878 - Trace ID: b06eff3f-74d9-428c-a868-c44567e6a600
Error getting the secret: invalid_client: 7000222 - [2026-07-02 23:43:43Z]: 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: b06eff3f-74d9-428c-a868-c4456de6a600 Correlation ID: c9092f95-f3aa-4852-8b49-7b8f9355f3ff Timestamp: 2026-07-02 23:43:43Z - Correlation ID: c9092f95-f3aa-4852-8b49-7b8f9355f3ff - Trace ID: b06eff3f-74d9-428c-a868-c4456de6a600
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)