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-27 11:06: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: 4b4a1f30-7104-4d1e-8f71-b1d0afda3500 Correlation ID: 071d5579-e895-4848-8e77-76a095d69f33 Timestamp: 2026-04-27 11:06:48Z - Correlation ID: 071d5579-e895-4848-8e77-76a095d69f33 - Trace ID: 4b4a1f30-7104-4d1e-8f71-b1d0afda3500
(node:5416) [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-27 11:06: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: af911c96-409e-4ff6-a176-a72d3b593a00 Correlation ID: 6c7c2403-9959-4827-9b14-2d318f56a4d6 Timestamp: 2026-04-27 11:06:48Z - Correlation ID: 6c7c2403-9959-4827-9b14-2d318f56a4d6 - Trace ID: af911c96-409e-4ff6-a176-a72d3b593a00
Error getting the secret: invalid_client: 7000222 - [2026-04-27 11:06: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: 9f23baa0-715b-4ce6-8fb8-70a511173200 Correlation ID: 0c31a545-b5a9-4440-bf65-fce2a2370cfe Timestamp: 2026-04-27 11:06:48Z - Correlation ID: 0c31a545-b5a9-4440-bf65-fce2a2370cfe - Trace ID: 9f23baa0-715b-4ce6-8fb8-70a511173200
Error getting the secret: invalid_client: 7000222 - [2026-04-27 11:06:49Z]: 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: 9f23baa0-715b-4ce6-8fb8-70a521173200 Correlation ID: 3138d413-7300-46cc-bf75-5521513160e0 Timestamp: 2026-04-27 11:06:49Z - Correlation ID: 3138d413-7300-46cc-bf75-5521513160e0 - Trace ID: 9f23baa0-715b-4ce6-8fb8-70a521173200
Error getting the secret: invalid_client: 7000222 - [2026-04-27 11:06:49Z]: 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: 45484d98-2480-4db8-ab68-069c47b80000 Correlation ID: b9ae52a2-da97-425f-9bcc-2d95cc923ab0 Timestamp: 2026-04-27 11:06:49Z - Correlation ID: b9ae52a2-da97-425f-9bcc-2d95cc923ab0 - Trace ID: 45484d98-2480-4db8-ab68-069c47b80000
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)