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-03 17:37: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: fd459a89-f749-4f74-bf5b-a44804610800 Correlation ID: a678c9cc-2c22-4dc3-955f-640d1bb9dfc7 Timestamp: 2026-07-03 17:37:40Z - Correlation ID: a678c9cc-2c22-4dc3-955f-640d1bb9dfc7 - Trace ID: fd459a89-f749-4f74-bf5b-a44804610800
(node:3880) [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-03 17:37: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: 83fd4cab-38d5-4038-b412-bd85731b0700 Correlation ID: 4088451a-7198-43aa-ac35-bee0ea7a9f45 Timestamp: 2026-07-03 17:37:41Z - Correlation ID: 4088451a-7198-43aa-ac35-bee0ea7a9f45 - Trace ID: 83fd4cab-38d5-4038-b412-bd85731b0700
Error getting the secret: invalid_client: 7000222 - [2026-07-03 17:37: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: 3e2d5a8f-ef95-421f-a542-19eb8a550800 Correlation ID: 077a3f81-a3f7-452f-845b-53f08f3555a5 Timestamp: 2026-07-03 17:37:41Z - Correlation ID: 077a3f81-a3f7-452f-845b-53f08f3555a5 - Trace ID: 3e2d5a8f-ef95-421f-a542-19eb8a550800
Error getting the secret: invalid_client: 7000222 - [2026-07-03 17:37: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: df5e6fcf-04b0-4b55-9175-a8eb21712800 Correlation ID: b664fed3-3738-4c04-9e3b-d7e15b559b0a Timestamp: 2026-07-03 17:37:41Z - Correlation ID: b664fed3-3738-4c04-9e3b-d7e15b559b0a - Trace ID: df5e6fcf-04b0-4b55-9175-a8eb21712800
Error getting the secret: invalid_client: 7000222 - [2026-07-03 17:37:42Z]: 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: df5e6fcf-04b0-4b55-9175-a8eb2b712800 Correlation ID: 618b013c-f497-4619-aa44-5ab83ed1e181 Timestamp: 2026-07-03 17:37:42Z - Correlation ID: 618b013c-f497-4619-aa44-5ab83ed1e181 - Trace ID: df5e6fcf-04b0-4b55-9175-a8eb2b712800
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)