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 10:35:05Z]: 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: edb35c56-95aa-46a0-b93b-3d8b61662500 Correlation ID: d6740fa1-efe8-484a-8317-f4f1a32da3ec Timestamp: 2026-07-22 10:35:05Z - Correlation ID: d6740fa1-efe8-484a-8317-f4f1a32da3ec - Trace ID: edb35c56-95aa-46a0-b93b-3d8b61662500
(node:1984) [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 10:35:05Z]: 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: 8c0bed05-f2a8-43a7-8d8e-003d3cd22800 Correlation ID: 6f22710d-4368-4dc1-89f5-e7bf9f7eff41 Timestamp: 2026-07-22 10:35:05Z - Correlation ID: 6f22710d-4368-4dc1-89f5-e7bf9f7eff41 - Trace ID: 8c0bed05-f2a8-43a7-8d8e-003d3cd22800
Error getting the secret: invalid_client: 7000222 - [2026-07-22 10:35:05Z]: 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: bb2857bb-fd90-4db3-85e1-1e9eeb012b00 Correlation ID: 31db1169-1322-4298-871e-ab58840e79e2 Timestamp: 2026-07-22 10:35:05Z - Correlation ID: 31db1169-1322-4298-871e-ab58840e79e2 - Trace ID: bb2857bb-fd90-4db3-85e1-1e9eeb012b00
Error getting the secret: invalid_client: 7000222 - [2026-07-22 10:35:06Z]: 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: 763aa9ac-191c-4ae6-ad64-961140702700 Correlation ID: 1fe0498a-69c1-4976-9d1c-dda893d10c13 Timestamp: 2026-07-22 10:35:06Z - Correlation ID: 1fe0498a-69c1-4976-9d1c-dda893d10c13 - Trace ID: 763aa9ac-191c-4ae6-ad64-961140702700
Error getting the secret: invalid_client: 7000222 - [2026-07-22 10:35:06Z]: 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: f5a71b36-28c4-4207-b073-af30badc2500 Correlation ID: dba22aae-4fec-49ba-8506-43b9227f79e8 Timestamp: 2026-07-22 10:35:06Z - Correlation ID: dba22aae-4fec-49ba-8506-43b9227f79e8 - Trace ID: f5a71b36-28c4-4207-b073-af30badc2500
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)