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-09 21:36:37Z]: 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: ef159ac5-8cf5-4ae9-b6dd-886e55822000 Correlation ID: c55fa8d8-d357-444d-838d-de0fecfe18cd Timestamp: 2026-07-09 21:36:37Z - Correlation ID: c55fa8d8-d357-444d-838d-de0fecfe18cd - Trace ID: ef159ac5-8cf5-4ae9-b6dd-886e55822000
(node:3284) [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-09 21:36:37Z]: 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: 17dacbb2-f5ef-4470-bb12-8a69772aa500 Correlation ID: ba226898-e1eb-4e06-bbba-ebedacff6e1b Timestamp: 2026-07-09 21:36:37Z - Correlation ID: ba226898-e1eb-4e06-bbba-ebedacff6e1b - Trace ID: 17dacbb2-f5ef-4470-bb12-8a69772aa500
Error getting the secret: invalid_client: 7000222 - [2026-07-09 21:36:37Z]: 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: cd508bfe-6650-43d9-aa5d-02c63fb10400 Correlation ID: 516dbccf-d62c-4af8-a793-3584e158bd0d Timestamp: 2026-07-09 21:36:37Z - Correlation ID: 516dbccf-d62c-4af8-a793-3584e158bd0d - Trace ID: cd508bfe-6650-43d9-aa5d-02c63fb10400
Error getting the secret: invalid_client: 7000222 - [2026-07-09 21:36: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: 035a6163-3d00-464c-bdbe-08a67f8f9b00 Correlation ID: f1402e3b-7226-4ed9-958c-3672f2f2f751 Timestamp: 2026-07-09 21:36:38Z - Correlation ID: f1402e3b-7226-4ed9-958c-3672f2f2f751 - Trace ID: 035a6163-3d00-464c-bdbe-08a67f8f9b00
Error getting the secret: invalid_client: 7000222 - [2026-07-09 21:36: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: b5835583-19ae-4808-8e23-1c8bbc670600 Correlation ID: 88c46f95-8604-4624-a658-2863d9916b53 Timestamp: 2026-07-09 21:36:38Z - Correlation ID: 88c46f95-8604-4624-a658-2863d9916b53 - Trace ID: b5835583-19ae-4808-8e23-1c8bbc670600
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)