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-10 05:36:36Z]: 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: 3e66c2e0-596c-426d-af9e-c245aaea1a00 Correlation ID: 8c178c4c-dc69-4f38-8395-80c287f4a535 Timestamp: 2026-07-10 05:36:36Z - Correlation ID: 8c178c4c-dc69-4f38-8395-80c287f4a535 - Trace ID: 3e66c2e0-596c-426d-af9e-c245aaea1a00
(node:5972) [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-10 05:36:37Z]: 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: 13814171-2464-4ced-95e7-0b1683c0a100 Correlation ID: c95af3a5-fb6b-42de-8474-bc88b45bfb77 Timestamp: 2026-07-10 05:36:37Z - Correlation ID: c95af3a5-fb6b-42de-8474-bc88b45bfb77 - Trace ID: 13814171-2464-4ced-95e7-0b1683c0a100
Error getting the secret: invalid_client: 7000222 - [2026-07-10 05:36:37Z]: 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: 3e2d5a8f-ef95-421f-a542-19eb89edae00 Correlation ID: b2bfd5ec-df09-4ae3-a00a-67abe54ba2f4 Timestamp: 2026-07-10 05:36:37Z - Correlation ID: b2bfd5ec-df09-4ae3-a00a-67abe54ba2f4 - Trace ID: 3e2d5a8f-ef95-421f-a542-19eb89edae00
Error getting the secret: invalid_client: 7000222 - [2026-07-10 05:36:37Z]: 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: 3e2d5a8f-ef95-421f-a542-19eb95edae00 Correlation ID: 7f827a02-cf99-40c8-8d47-a562a7c12e03 Timestamp: 2026-07-10 05:36:37Z - Correlation ID: 7f827a02-cf99-40c8-8d47-a562a7c12e03 - Trace ID: 3e2d5a8f-ef95-421f-a542-19eb95edae00
Error getting the secret: invalid_client: 7000222 - [2026-07-10 05:36:38Z]: 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: 4f569df5-a9f5-4c4a-b820-70343e271f00 Correlation ID: a3b31245-3f2d-4210-a99b-76ffab3fb3f6 Timestamp: 2026-07-10 05:36:38Z - Correlation ID: a3b31245-3f2d-4210-a99b-76ffab3fb3f6 - Trace ID: 4f569df5-a9f5-4c4a-b820-70343e271f00
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)