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-04-25 08:37:48Z]: 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: dde65251-2e8f-4b14-ae94-b853ff310a00 Correlation ID: b58e441e-ad3c-4827-8e90-ed621061b132 Timestamp: 2026-04-25 08:37:48Z - Correlation ID: b58e441e-ad3c-4827-8e90-ed621061b132 - Trace ID: dde65251-2e8f-4b14-ae94-b853ff310a00
(node:6088) [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-04-25 08:37:48Z]: 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: 90094bac-bd07-4eef-a267-328659a23700 Correlation ID: 4ff14e07-0236-4176-9317-5ea755728781 Timestamp: 2026-04-25 08:37:48Z - Correlation ID: 4ff14e07-0236-4176-9317-5ea755728781 - Trace ID: 90094bac-bd07-4eef-a267-328659a23700
Error getting the secret: invalid_client: 7000222 - [2026-04-25 08:37:48Z]: 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: 8ccbebfc-1037-47ba-96bc-040cae610f00 Correlation ID: c08e19bf-cab0-4860-b1a0-f23b41a604eb Timestamp: 2026-04-25 08:37:48Z - Correlation ID: c08e19bf-cab0-4860-b1a0-f23b41a604eb - Trace ID: 8ccbebfc-1037-47ba-96bc-040cae610f00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 08:37:48Z]: 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: 79313727-0ab0-4ab9-a67f-a06d099c0a00 Correlation ID: c2759f27-73ca-4309-bb11-a203a8efddfd Timestamp: 2026-04-25 08:37:48Z - Correlation ID: c2759f27-73ca-4309-bb11-a203a8efddfd - Trace ID: 79313727-0ab0-4ab9-a67f-a06d099c0a00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 08:37:48Z]: 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: d4b7dbab-77ca-4974-b16f-29af79122d00 Correlation ID: 7b84903c-b901-4962-9119-7b8c02b6d50c Timestamp: 2026-04-25 08:37:48Z - Correlation ID: 7b84903c-b901-4962-9119-7b8c02b6d50c - Trace ID: d4b7dbab-77ca-4974-b16f-29af79122d00
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)