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-04-28 18:02:38Z]: 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: b5167657-6acc-4ba2-a1d3-825d49871f00 Correlation ID: 56989613-79b3-4110-88d1-5ea8f8b4fccc Timestamp: 2026-04-28 18:02:38Z - Correlation ID: 56989613-79b3-4110-88d1-5ea8f8b4fccc - Trace ID: b5167657-6acc-4ba2-a1d3-825d49871f00
(node:5844) [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-04-28 18:02:38Z]: 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: 74a3c3b3-2f4d-4087-a36c-fc27828e6000 Correlation ID: f83ca540-9800-4344-894f-ad89951e4225 Timestamp: 2026-04-28 18:02:38Z - Correlation ID: f83ca540-9800-4344-894f-ad89951e4225 - Trace ID: 74a3c3b3-2f4d-4087-a36c-fc27828e6000
Error getting the secret: invalid_client: 7000222 - [2026-04-28 18:02:38Z]: 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: 0cf45674-59c6-4dad-b019-f4ba54bb5b00 Correlation ID: d31bb5d8-0838-412c-bdf3-f9e912a4ee89 Timestamp: 2026-04-28 18:02:38Z - Correlation ID: d31bb5d8-0838-412c-bdf3-f9e912a4ee89 - Trace ID: 0cf45674-59c6-4dad-b019-f4ba54bb5b00
Error getting the secret: invalid_client: 7000222 - [2026-04-28 18:02:38Z]: 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: 62c3306e-727f-4a85-b210-b8090c170c00 Correlation ID: 875607fe-4f22-4c67-a2b1-42e3f3c91ebc Timestamp: 2026-04-28 18:02:38Z - Correlation ID: 875607fe-4f22-4c67-a2b1-42e3f3c91ebc - Trace ID: 62c3306e-727f-4a85-b210-b8090c170c00
Error getting the secret: invalid_client: 7000222 - [2026-04-28 18:02:39Z]: 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: e25108b4-c3ff-48e2-8fed-2bdb0f6a6000 Correlation ID: 61d9791b-4f2e-4d89-87e4-fa0465a2f20d Timestamp: 2026-04-28 18:02:39Z - Correlation ID: 61d9791b-4f2e-4d89-87e4-fa0465a2f20d - Trace ID: e25108b4-c3ff-48e2-8fed-2bdb0f6a6000
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)