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 19:06:20Z]: 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: ef4ef56e-d69b-46a9-9d58-7b8329f90e00 Correlation ID: 129408b4-cbf5-4f00-8199-c5ce5ac9ea8c Timestamp: 2026-04-22 19:06:20Z - Correlation ID: 129408b4-cbf5-4f00-8199-c5ce5ac9ea8c - Trace ID: ef4ef56e-d69b-46a9-9d58-7b8329f90e00
(node:4980) [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 19:06:20Z]: 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: 189a10b6-f2ff-44ff-9bd3-3be0f2c42200 Correlation ID: 202431b7-faba-4886-a707-2604c44b9a85 Timestamp: 2026-04-22 19:06:20Z - Correlation ID: 202431b7-faba-4886-a707-2604c44b9a85 - Trace ID: 189a10b6-f2ff-44ff-9bd3-3be0f2c42200
Error getting the secret: invalid_client: 7000222 - [2026-04-22 19:06:20Z]: 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: 4a291960-89ea-47ae-917a-22cedff60c00 Correlation ID: 1770191e-6bf5-480a-9a89-8caf64b97b83 Timestamp: 2026-04-22 19:06:20Z - Correlation ID: 1770191e-6bf5-480a-9a89-8caf64b97b83 - Trace ID: 4a291960-89ea-47ae-917a-22cedff60c00
Error getting the secret: invalid_client: 7000222 - [2026-04-22 19:06:21Z]: 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: 189a10b6-f2ff-44ff-9bd3-3be016c52200 Correlation ID: 98257a44-9879-4df5-8ac6-693e30cb4aab Timestamp: 2026-04-22 19:06:21Z - Correlation ID: 98257a44-9879-4df5-8ac6-693e30cb4aab - Trace ID: 189a10b6-f2ff-44ff-9bd3-3be016c52200
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)