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-02-25 23:44: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: 0c890cff-843b-415a-9701-10879dd5b100 Correlation ID: afdf7d21-3623-44ca-b5cb-2e82fc2ae6d0 Timestamp: 2026-02-25 23:44:16Z - Correlation ID: afdf7d21-3623-44ca-b5cb-2e82fc2ae6d0 - Trace ID: 0c890cff-843b-415a-9701-10879dd5b100
(node:2928) [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-02-25 23:44: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: b9687742-1b4a-4286-8f31-9098ff7f2000 Correlation ID: 5b8b6e19-5f86-4f74-8728-cd62fe5f943e Timestamp: 2026-02-25 23:44:17Z - Correlation ID: 5b8b6e19-5f86-4f74-8728-cd62fe5f943e - Trace ID: b9687742-1b4a-4286-8f31-9098ff7f2000
Error getting the secret: invalid_client: 7000222 - [2026-02-25 23:44: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: b5404aae-d851-4d55-89b1-12b6276c1500 Correlation ID: 8f0fa8f3-3cd7-4c8e-8abf-d7912864b63c Timestamp: 2026-02-25 23:44:17Z - Correlation ID: 8f0fa8f3-3cd7-4c8e-8abf-d7912864b63c - Trace ID: b5404aae-d851-4d55-89b1-12b6276c1500
Error getting the secret: invalid_client: 7000222 - [2026-02-25 23:44: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: e0c683f6-5357-46d9-83e9-e2dd76ab4100 Correlation ID: fac1012c-ed22-4616-837d-08d0be814d70 Timestamp: 2026-02-25 23:44:18Z - Correlation ID: fac1012c-ed22-4616-837d-08d0be814d70 - Trace ID: e0c683f6-5357-46d9-83e9-e2dd76ab4100
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)