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-21 09:43:44Z]: 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: 254272ad-1f84-4e11-88e9-d3aeeeaa2000 Correlation ID: 590963e8-95c7-4c4a-a046-001c6870fba8 Timestamp: 2026-07-21 09:43:44Z - Correlation ID: 590963e8-95c7-4c4a-a046-001c6870fba8 - Trace ID: 254272ad-1f84-4e11-88e9-d3aeeeaa2000
(node:3112) [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-21 09:43:44Z]: 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: 6ce37702-bf44-45e3-a3bc-eefda6dd1f00 Correlation ID: b3c26918-d188-49e7-8b0e-4143076aebb1 Timestamp: 2026-07-21 09:43:44Z - Correlation ID: b3c26918-d188-49e7-8b0e-4143076aebb1 - Trace ID: 6ce37702-bf44-45e3-a3bc-eefda6dd1f00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 09:43:45Z]: 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: 6ce37702-bf44-45e3-a3bc-eefdaddd1f00 Correlation ID: cb4d30a7-f7a4-4015-8ac5-6ce2278b747e Timestamp: 2026-07-21 09:43:45Z - Correlation ID: cb4d30a7-f7a4-4015-8ac5-6ce2278b747e - Trace ID: 6ce37702-bf44-45e3-a3bc-eefdaddd1f00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 09:43:45Z]: 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: 73d6a2eb-c142-4c17-90a4-626674430b00 Correlation ID: b12304ba-e899-4232-929e-d0243a03e96c Timestamp: 2026-07-21 09:43:45Z - Correlation ID: b12304ba-e899-4232-929e-d0243a03e96c - Trace ID: 73d6a2eb-c142-4c17-90a4-626674430b00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 09:43:45Z]: 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: 4d6a5bc7-cfd0-4c33-9a14-aa09c7ff0900 Correlation ID: 4c11b079-3e91-45cb-b4b8-f9b98d8bd97a Timestamp: 2026-07-21 09:43:45Z - Correlation ID: 4c11b079-3e91-45cb-b4b8-f9b98d8bd97a - Trace ID: 4d6a5bc7-cfd0-4c33-9a14-aa09c7ff0900
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)