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-27 02:26:33Z]: 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: 4c4a5730-13f6-4518-a4d1-e4e7c62e0100 Correlation ID: 3aa228cf-ca11-435a-be6b-676a5ab42739 Timestamp: 2026-07-27 02:26:33Z - Correlation ID: 3aa228cf-ca11-435a-be6b-676a5ab42739 - Trace ID: 4c4a5730-13f6-4518-a4d1-e4e7c62e0100
(node:4144) [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-27 02:26:34Z]: 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: 80d6c74e-083c-47e5-81cc-8bc44c680200 Correlation ID: 524de78e-5ef1-429a-9596-bc40606b369a Timestamp: 2026-07-27 02:26:34Z - Correlation ID: 524de78e-5ef1-429a-9596-bc40606b369a - Trace ID: 80d6c74e-083c-47e5-81cc-8bc44c680200
Error getting the secret: invalid_client: 7000222 - [2026-07-27 02:26:34Z]: 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: 4c4a5730-13f6-4518-a4d1-e4e7d92e0100 Correlation ID: 224e8178-8f4f-4482-813f-17db348bd721 Timestamp: 2026-07-27 02:26:34Z - Correlation ID: 224e8178-8f4f-4482-813f-17db348bd721 - Trace ID: 4c4a5730-13f6-4518-a4d1-e4e7d92e0100
Error getting the secret: invalid_client: 7000222 - [2026-07-27 02:26:34Z]: 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: acc15ae3-46e3-48d9-ac28-ee0a86f20200 Correlation ID: bba13979-31c3-47cf-bd5f-2085e5c789bc Timestamp: 2026-07-27 02:26:34Z - Correlation ID: bba13979-31c3-47cf-bd5f-2085e5c789bc - Trace ID: acc15ae3-46e3-48d9-ac28-ee0a86f20200
Error getting the secret: invalid_client: 7000222 - [2026-07-27 02:26:35Z]: 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: 4c4a5730-13f6-4518-a4d1-e4e7e72e0100 Correlation ID: c41efa81-ab73-4246-87c4-c6388c2b3b49 Timestamp: 2026-07-27 02:26:35Z - Correlation ID: c41efa81-ab73-4246-87c4-c6388c2b3b49 - Trace ID: 4c4a5730-13f6-4518-a4d1-e4e7e72e0100
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)