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-21 12:32: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: b8dada66-34f7-4bbf-862a-66d9e4620d00 Correlation ID: 60032b8e-d14b-46eb-bf40-085d2e3e0651 Timestamp: 2026-07-21 12:32:40Z - Correlation ID: 60032b8e-d14b-46eb-bf40-085d2e3e0651 - Trace ID: b8dada66-34f7-4bbf-862a-66d9e4620d00
(node:6140) [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-21 12:32: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: d38b2684-4df7-4e50-8be6-320d7f8b2300 Correlation ID: e26d0876-169a-49f9-8984-7be566a428ae Timestamp: 2026-07-21 12:32:40Z - Correlation ID: e26d0876-169a-49f9-8984-7be566a428ae - Trace ID: d38b2684-4df7-4e50-8be6-320d7f8b2300
Error getting the secret: invalid_client: 7000222 - [2026-07-21 12:32: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: dbf8b61d-3629-4004-93a1-225a028e0d00 Correlation ID: 21e3532a-9401-4c7a-9a23-e01a1ebd7844 Timestamp: 2026-07-21 12:32:40Z - Correlation ID: 21e3532a-9401-4c7a-9a23-e01a1ebd7844 - Trace ID: dbf8b61d-3629-4004-93a1-225a028e0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 12:32:41Z]: 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: dbf8b61d-3629-4004-93a1-225a0b8e0d00 Correlation ID: 1c8d7f13-1973-4f4e-ba6a-d2f3e01c5858 Timestamp: 2026-07-21 12:32:41Z - Correlation ID: 1c8d7f13-1973-4f4e-ba6a-d2f3e01c5858 - Trace ID: dbf8b61d-3629-4004-93a1-225a0b8e0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-21 12:32:41Z]: 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: 6081a176-85bb-4bfa-91d6-5705cf300b00 Correlation ID: 7dc0afb1-b881-47bb-a73f-486645728da3 Timestamp: 2026-07-21 12:32:41Z - Correlation ID: 7dc0afb1-b881-47bb-a73f-486645728da3 - Trace ID: 6081a176-85bb-4bfa-91d6-5705cf300b00
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)