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-01 12:39:25Z]: 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: 5df5132f-e54e-463c-bfb8-533f03a76200 Correlation ID: 774fc0c9-7716-41ed-908a-62c6d669a523 Timestamp: 2026-07-01 12:39:25Z - Correlation ID: 774fc0c9-7716-41ed-908a-62c6d669a523 - Trace ID: 5df5132f-e54e-463c-bfb8-533f03a76200
(node:2136) [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-01 12:39:25Z]: 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: 0f82bb19-d803-42f1-9863-9734794f7300 Correlation ID: 703bca06-35e6-4ce5-9b8d-145ed831dd6e Timestamp: 2026-07-01 12:39:25Z - Correlation ID: 703bca06-35e6-4ce5-9b8d-145ed831dd6e - Trace ID: 0f82bb19-d803-42f1-9863-9734794f7300
Error getting the secret: invalid_client: 7000222 - [2026-07-01 12:39:25Z]: 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: d68e9d46-3e01-4d43-8be6-ba16a06d7600 Correlation ID: c0662263-2a5d-45d8-96f2-2344601f19b7 Timestamp: 2026-07-01 12:39:25Z - Correlation ID: c0662263-2a5d-45d8-96f2-2344601f19b7 - Trace ID: d68e9d46-3e01-4d43-8be6-ba16a06d7600
Error getting the secret: invalid_client: 7000222 - [2026-07-01 12:39:26Z]: 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: d68e9d46-3e01-4d43-8be6-ba16a66d7600 Correlation ID: 170d0f40-c0b8-4896-84d7-730c9815b974 Timestamp: 2026-07-01 12:39:26Z - Correlation ID: 170d0f40-c0b8-4896-84d7-730c9815b974 - Trace ID: d68e9d46-3e01-4d43-8be6-ba16a66d7600
Error getting the secret: invalid_client: 7000222 - [2026-07-01 12:39:26Z]: 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: 2ea9aaac-8160-4578-8bd5-2b4bac140700 Correlation ID: c23b09b4-189e-40c2-81fe-ac254ba0c187 Timestamp: 2026-07-01 12:39:26Z - Correlation ID: c23b09b4-189e-40c2-81fe-ac254ba0c187 - Trace ID: 2ea9aaac-8160-4578-8bd5-2b4bac140700
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)