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-03 19:45:53Z]: 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: 01185403-0a32-48d7-a3ec-03c102f04300 Correlation ID: 74802a52-d789-4be3-ab03-f1342f4638c0 Timestamp: 2026-07-03 19:45:53Z - Correlation ID: 74802a52-d789-4be3-ab03-f1342f4638c0 - Trace ID: 01185403-0a32-48d7-a3ec-03c102f04300
(node:4284) [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-03 19:45:53Z]: 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: 4ee21cdd-9bb7-48b7-8dd5-480cc3160a00 Correlation ID: 50d6dadd-7282-4266-9169-1348831da820 Timestamp: 2026-07-03 19:45:53Z - Correlation ID: 50d6dadd-7282-4266-9169-1348831da820 - Trace ID: 4ee21cdd-9bb7-48b7-8dd5-480cc3160a00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 19:45:54Z]: 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: da437c35-8c70-4091-b485-e6fbbe71b000 Correlation ID: 1ee0f59e-1552-4383-ba02-cbf7253d0794 Timestamp: 2026-07-03 19:45:54Z - Correlation ID: 1ee0f59e-1552-4383-ba02-cbf7253d0794 - Trace ID: da437c35-8c70-4091-b485-e6fbbe71b000
Error getting the secret: invalid_client: 7000222 - [2026-07-03 19:45:54Z]: 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: 4ee21cdd-9bb7-48b7-8dd5-480cd2160a00 Correlation ID: 55ae94ae-1b30-497a-a4dd-ec16ed8dc855 Timestamp: 2026-07-03 19:45:54Z - Correlation ID: 55ae94ae-1b30-497a-a4dd-ec16ed8dc855 - Trace ID: 4ee21cdd-9bb7-48b7-8dd5-480cd2160a00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 19:45:54Z]: 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: ea29e171-d836-4f09-99b9-e3c9db89b200 Correlation ID: bf81fe9c-7241-4d34-acad-d427e575f691 Timestamp: 2026-07-03 19:45:54Z - Correlation ID: bf81fe9c-7241-4d34-acad-d427e575f691 - Trace ID: ea29e171-d836-4f09-99b9-e3c9db89b200
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)