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-26 04:30:45Z]: 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: 0973226f-d3f9-4ae5-a8b4-faf19d0b0100 Correlation ID: b0d693a4-0854-4ce1-9756-24e27fc35384 Timestamp: 2026-07-26 04:30:45Z - Correlation ID: b0d693a4-0854-4ce1-9756-24e27fc35384 - Trace ID: 0973226f-d3f9-4ae5-a8b4-faf19d0b0100
(node:1372) [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-26 04:30:45Z]: 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: 21bb8284-ea65-4814-8284-edb480711400 Correlation ID: e88cf10a-7198-4091-8885-f80e2954a06b Timestamp: 2026-07-26 04:30:45Z - Correlation ID: e88cf10a-7198-4091-8885-f80e2954a06b - Trace ID: 21bb8284-ea65-4814-8284-edb480711400
Error getting the secret: invalid_client: 7000222 - [2026-07-26 04:30:45Z]: 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: 5459a18a-c31f-4a34-b2ce-c527adfd2100 Correlation ID: f4feecb6-d867-4945-af19-117742ca0082 Timestamp: 2026-07-26 04:30:45Z - Correlation ID: f4feecb6-d867-4945-af19-117742ca0082 - Trace ID: 5459a18a-c31f-4a34-b2ce-c527adfd2100
Error getting the secret: invalid_client: 7000222 - [2026-07-26 04:30:46Z]: 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: 0d86d52e-f608-4314-9a60-fc8079e52600 Correlation ID: 77187084-d1aa-4279-b035-14631751d744 Timestamp: 2026-07-26 04:30:46Z - Correlation ID: 77187084-d1aa-4279-b035-14631751d744 - Trace ID: 0d86d52e-f608-4314-9a60-fc8079e52600
Error getting the secret: invalid_client: 7000222 - [2026-07-26 04:30:46Z]: 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: 3b76a9ac-1c28-4246-a6b1-71e5791a1100 Correlation ID: 4767ad09-47ef-49f4-8413-e525a44ef0aa Timestamp: 2026-07-26 04:30:46Z - Correlation ID: 4767ad09-47ef-49f4-8413-e525a44ef0aa - Trace ID: 3b76a9ac-1c28-4246-a6b1-71e5791a1100
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)