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-05 09:38: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: b7eb4211-e0ff-4d42-bb5c-abcb36e12200 Correlation ID: c4482663-71b7-4b98-a039-39d3112faf39 Timestamp: 2026-07-05 09:38:39Z - Correlation ID: c4482663-71b7-4b98-a039-39d3112faf39 - Trace ID: b7eb4211-e0ff-4d42-bb5c-abcb36e12200
(node:1248) [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-05 09:38: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: de142f80-d9c5-4bff-867f-c69ce3c92500 Correlation ID: 60f9eb25-feab-45cd-9467-cf70946704cf Timestamp: 2026-07-05 09:38:39Z - Correlation ID: 60f9eb25-feab-45cd-9467-cf70946704cf - Trace ID: de142f80-d9c5-4bff-867f-c69ce3c92500
Error getting the secret: invalid_client: 7000222 - [2026-07-05 09:38: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: 243f7f40-5920-42b1-9d4d-e8fdbdb21900 Correlation ID: ac7770a8-ef84-446c-9d5d-9ca270c07d95 Timestamp: 2026-07-05 09:38:39Z - Correlation ID: ac7770a8-ef84-446c-9d5d-9ca270c07d95 - Trace ID: 243f7f40-5920-42b1-9d4d-e8fdbdb21900
Error getting the secret: invalid_client: 7000222 - [2026-07-05 09:38:40Z]: 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: c7e6d1c2-b6fa-48e0-8650-a1a8ea4f1700 Correlation ID: 11e7371e-a7e5-403c-9655-c386e4aa2842 Timestamp: 2026-07-05 09:38:40Z - Correlation ID: 11e7371e-a7e5-403c-9655-c386e4aa2842 - Trace ID: c7e6d1c2-b6fa-48e0-8650-a1a8ea4f1700
Error getting the secret: invalid_client: 7000222 - [2026-07-05 09:38:40Z]: 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: 38909ace-1453-4ec9-92f1-5a937b351900 Correlation ID: f4b808ce-e32a-4d06-8dd1-26228ad0ef5b Timestamp: 2026-07-05 09:38:40Z - Correlation ID: f4b808ce-e32a-4d06-8dd1-26228ad0ef5b - Trace ID: 38909ace-1453-4ec9-92f1-5a937b351900
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)