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-03 09:41: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: e1c21493-d4c7-4253-8f9f-29532230a300 Correlation ID: 0f5d3090-eb0d-4b4c-8f46-71cf8c088081 Timestamp: 2026-07-03 09:41:38Z - Correlation ID: 0f5d3090-eb0d-4b4c-8f46-71cf8c088081 - Trace ID: e1c21493-d4c7-4253-8f9f-29532230a300
(node:5176) [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-03 09:41: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: e2610285-13f9-492b-b01e-0151c9c63400 Correlation ID: 970356f5-266e-4d5c-8c30-3495e84fe01d Timestamp: 2026-07-03 09:41:38Z - Correlation ID: 970356f5-266e-4d5c-8c30-3495e84fe01d - Trace ID: e2610285-13f9-492b-b01e-0151c9c63400
Error getting the secret: invalid_client: 7000222 - [2026-07-03 09:41: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: 0f58d268-2705-4c29-89c1-1f4e09dbaa00 Correlation ID: 6d2b07c2-ac07-4d9d-a839-499c81924bd8 Timestamp: 2026-07-03 09:41:38Z - Correlation ID: 6d2b07c2-ac07-4d9d-a839-499c81924bd8 - Trace ID: 0f58d268-2705-4c29-89c1-1f4e09dbaa00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 09:41: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: f97d9b40-0731-4707-a3ff-052e27912700 Correlation ID: 313b0ad8-3d6e-4b1f-bdc2-005e1ec79f5d Timestamp: 2026-07-03 09:41:38Z - Correlation ID: 313b0ad8-3d6e-4b1f-bdc2-005e1ec79f5d - Trace ID: f97d9b40-0731-4707-a3ff-052e27912700
Error getting the secret: invalid_client: 7000222 - [2026-07-03 09:41: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: c74bba8a-a19d-4524-9183-6b4fa1a02600 Correlation ID: 3ae35e85-a7ec-44e6-989b-850e6c518e95 Timestamp: 2026-07-03 09:41:38Z - Correlation ID: 3ae35e85-a7ec-44e6-989b-850e6c518e95 - Trace ID: c74bba8a-a19d-4524-9183-6b4fa1a02600
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)