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-22 04:40: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: 61763315-973a-4a41-9c92-5ef973dd2200 Correlation ID: 60367937-e81b-4a99-987c-09bca9121aec Timestamp: 2026-07-22 04:40:22Z - Correlation ID: 60367937-e81b-4a99-987c-09bca9121aec - Trace ID: 61763315-973a-4a41-9c92-5ef973dd2200
(node:1948) [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-22 04:40: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: 9a227625-9d6f-4cd6-834e-d79037563b00 Correlation ID: e18fa8be-63c9-4dc2-b053-73fc49f3eae5 Timestamp: 2026-07-22 04:40:22Z - Correlation ID: e18fa8be-63c9-4dc2-b053-73fc49f3eae5 - Trace ID: 9a227625-9d6f-4cd6-834e-d79037563b00
Error getting the secret: invalid_client: 7000222 - [2026-07-22 04:40: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: 52ba7a0c-ef27-40c5-a7e1-514f0a331e00 Correlation ID: f5ddc6bf-79e9-4883-a397-c01ec0c3b6bd Timestamp: 2026-07-22 04:40:22Z - Correlation ID: f5ddc6bf-79e9-4883-a397-c01ec0c3b6bd - Trace ID: 52ba7a0c-ef27-40c5-a7e1-514f0a331e00
Error getting the secret: invalid_client: 7000222 - [2026-07-22 04:40:23Z]: 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: b0806fa6-a623-49c5-9902-8b52f8451c00 Correlation ID: 55408703-b58e-4d43-9812-96be8a23e728 Timestamp: 2026-07-22 04:40:23Z - Correlation ID: 55408703-b58e-4d43-9812-96be8a23e728 - Trace ID: b0806fa6-a623-49c5-9902-8b52f8451c00
Error getting the secret: invalid_client: 7000222 - [2026-07-22 04:40:23Z]: 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: 87593fc0-393d-433d-9246-5bbb67d21f00 Correlation ID: 219d6e63-863d-4611-9c27-06f2f1a56014 Timestamp: 2026-07-22 04:40:23Z - Correlation ID: 219d6e63-863d-4611-9c27-06f2f1a56014 - Trace ID: 87593fc0-393d-433d-9246-5bbb67d21f00
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)