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-20 15:33:16Z]: 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: 3cac938b-5347-4783-89ee-f8b2a81e2f00 Correlation ID: b57c11ba-8fcf-40d1-9cae-bb1441407afe Timestamp: 2026-07-20 15:33:16Z - Correlation ID: b57c11ba-8fcf-40d1-9cae-bb1441407afe - Trace ID: 3cac938b-5347-4783-89ee-f8b2a81e2f00
(node:5736) [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-20 15:33:17Z]: 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: e9884e64-93ba-4a0e-9909-dcc309641000 Correlation ID: f53b2b2a-459c-420b-bd36-7349ad987983 Timestamp: 2026-07-20 15:33:17Z - Correlation ID: f53b2b2a-459c-420b-bd36-7349ad987983 - Trace ID: e9884e64-93ba-4a0e-9909-dcc309641000
Error getting the secret: invalid_client: 7000222 - [2026-07-20 15:33:17Z]: 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: 52c88822-0cdb-44a8-9d31-1101c1022f00 Correlation ID: 9780b794-842e-4df3-9a28-8aa07d5990ba Timestamp: 2026-07-20 15:33:17Z - Correlation ID: 9780b794-842e-4df3-9a28-8aa07d5990ba - Trace ID: 52c88822-0cdb-44a8-9d31-1101c1022f00
Error getting the secret: invalid_client: 7000222 - [2026-07-20 15:33:17Z]: 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: 2256ec14-e533-4964-8c51-2fbe8f662a00 Correlation ID: 0e053dd0-3a13-4fc0-b091-a5debfc83c2a Timestamp: 2026-07-20 15:33:17Z - Correlation ID: 0e053dd0-3a13-4fc0-b091-a5debfc83c2a - Trace ID: 2256ec14-e533-4964-8c51-2fbe8f662a00
Error getting the secret: invalid_client: 7000222 - [2026-07-20 15:33:18Z]: 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: 43ced09e-57e1-4c08-9eff-f52c3e172800 Correlation ID: e2498daa-63e5-40dc-9a33-4b57466594ef Timestamp: 2026-07-20 15:33:18Z - Correlation ID: e2498daa-63e5-40dc-9a33-4b57466594ef - Trace ID: 43ced09e-57e1-4c08-9eff-f52c3e172800
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)