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-22 16:02:06Z]: 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: 698e6867-d178-45b1-8665-e1c96b3a0a00 Correlation ID: 844c51ed-2b8f-4f5a-90cd-716667cdcaa1 Timestamp: 2026-04-22 16:02:06Z - Correlation ID: 844c51ed-2b8f-4f5a-90cd-716667cdcaa1 - Trace ID: 698e6867-d178-45b1-8665-e1c96b3a0a00
(node:3548) [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-22 16:02:06Z]: 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: a2b1ff1f-939a-42cf-8a59-94fca1763f00 Correlation ID: 2404c11f-b14f-4171-a37d-708062d7165b Timestamp: 2026-04-22 16:02:06Z - Correlation ID: 2404c11f-b14f-4171-a37d-708062d7165b - Trace ID: a2b1ff1f-939a-42cf-8a59-94fca1763f00
Error getting the secret: invalid_client: 7000222 - [2026-04-22 16:02:07Z]: 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: c50cc838-a364-4e18-ae8e-850dcd3f5100 Correlation ID: b0f13062-df1e-4a02-ac4d-6fcd0f43f10c Timestamp: 2026-04-22 16:02:07Z - Correlation ID: b0f13062-df1e-4a02-ac4d-6fcd0f43f10c - Trace ID: c50cc838-a364-4e18-ae8e-850dcd3f5100
Error getting the secret: invalid_client: 7000222 - [2026-04-22 16:02:07Z]: 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: 9a3c46db-ba82-44e4-b333-ba17c23e5100 Correlation ID: bf0e4705-f90e-4b53-a943-386a3da07bef Timestamp: 2026-04-22 16:02:07Z - Correlation ID: bf0e4705-f90e-4b53-a943-386a3da07bef - Trace ID: 9a3c46db-ba82-44e4-b333-ba17c23e5100
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)