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 13:25:59Z]: 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: 553be710-b7c5-4049-95ca-ba7cd6151100 Correlation ID: 69502fb9-c5c4-4a1c-b8f3-bae12057d3a2 Timestamp: 2026-04-25 13:25:59Z - Correlation ID: 69502fb9-c5c4-4a1c-b8f3-bae12057d3a2 - Trace ID: 553be710-b7c5-4049-95ca-ba7cd6151100
(node:2912) [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 13:26:00Z]: 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: 27e88cde-27e4-4326-a58e-be4f1eed0f00 Correlation ID: 04e78c7f-5ed3-4e45-a8e0-b84407e605cd Timestamp: 2026-04-25 13:26:00Z - Correlation ID: 04e78c7f-5ed3-4e45-a8e0-b84407e605cd - Trace ID: 27e88cde-27e4-4326-a58e-be4f1eed0f00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 13:26:00Z]: 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: ee57008c-2ab8-4560-bfed-2161360f0d00 Correlation ID: 7b974213-5224-4486-9a0d-28b588522ae6 Timestamp: 2026-04-25 13:26:00Z - Correlation ID: 7b974213-5224-4486-9a0d-28b588522ae6 - Trace ID: ee57008c-2ab8-4560-bfed-2161360f0d00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 13:26:00Z]: 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: 553be710-b7c5-4049-95ca-ba7ce3151100 Correlation ID: 279e6d03-aa89-4d06-97d0-2068ff2dd030 Timestamp: 2026-04-25 13:26:00Z - Correlation ID: 279e6d03-aa89-4d06-97d0-2068ff2dd030 - Trace ID: 553be710-b7c5-4049-95ca-ba7ce3151100
Error getting the secret: invalid_client: 7000222 - [2026-04-25 13:26:01Z]: 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: 2c5cadb4-712a-4488-8fff-b2b7b7be0e00 Correlation ID: c33ba7dd-d119-44f9-8ed8-e3c2863f1da8 Timestamp: 2026-04-25 13:26:01Z - Correlation ID: c33ba7dd-d119-44f9-8ed8-e3c2863f1da8 - Trace ID: 2c5cadb4-712a-4488-8fff-b2b7b7be0e00
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)