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-16 09:21:12Z]: 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: 823a093e-2b6e-4286-85ba-eb7bc2fb0000 Correlation ID: b80d9e3a-1215-4af9-84a6-a6547a7d5215 Timestamp: 2026-07-16 09:21:12Z - Correlation ID: b80d9e3a-1215-4af9-84a6-a6547a7d5215 - Trace ID: 823a093e-2b6e-4286-85ba-eb7bc2fb0000
(node:916) [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-16 09:21:12Z]: 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: 9bbbdac6-d7ec-44c6-8f6e-311c02fc2b00 Correlation ID: c6c6e02d-85c8-4c89-a4f8-631eb6d4981f Timestamp: 2026-07-16 09:21:12Z - Correlation ID: c6c6e02d-85c8-4c89-a4f8-631eb6d4981f - Trace ID: 9bbbdac6-d7ec-44c6-8f6e-311c02fc2b00
Error getting the secret: invalid_client: 7000222 - [2026-07-16 09:21:12Z]: 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: 2d384846-5897-42fb-a797-723160390900 Correlation ID: 23d89e4b-63a5-4031-af21-c52f89d74e72 Timestamp: 2026-07-16 09:21:12Z - Correlation ID: 23d89e4b-63a5-4031-af21-c52f89d74e72 - Trace ID: 2d384846-5897-42fb-a797-723160390900
Error getting the secret: invalid_client: 7000222 - [2026-07-16 09:21:12Z]: 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: 210c73ac-bfd2-4a50-92ea-079ee3532c00 Correlation ID: c319f6d1-9b2b-476c-9397-865572f26a71 Timestamp: 2026-07-16 09:21:12Z - Correlation ID: c319f6d1-9b2b-476c-9397-865572f26a71 - Trace ID: 210c73ac-bfd2-4a50-92ea-079ee3532c00
Error getting the secret: invalid_client: 7000222 - [2026-07-16 09:21:13Z]: 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: 9137319d-dfd4-4b9c-82c1-d5fb65ce1200 Correlation ID: 9db2f095-19e7-43f4-9fc3-1febce471ccc Timestamp: 2026-07-16 09:21:13Z - Correlation ID: 9db2f095-19e7-43f4-9fc3-1febce471ccc - Trace ID: 9137319d-dfd4-4b9c-82c1-d5fb65ce1200
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)