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-22 06:44: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: 980864b7-cb32-42e8-a147-794c01e62500 Correlation ID: 7dfe6686-e2f9-4fc9-9b78-4b90a2bc651c Timestamp: 2026-07-22 06:44:20Z - Correlation ID: 7dfe6686-e2f9-4fc9-9b78-4b90a2bc651c - Trace ID: 980864b7-cb32-42e8-a147-794c01e62500
(node:2564) [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-22 06:44: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: 995ff3e3-d874-4354-8a95-aa7070443500 Correlation ID: b6604cc7-ace5-49a9-bb28-2f62129af779 Timestamp: 2026-07-22 06:44:20Z - Correlation ID: b6604cc7-ace5-49a9-bb28-2f62129af779 - Trace ID: 995ff3e3-d874-4354-8a95-aa7070443500
Error getting the secret: invalid_client: 7000222 - [2026-07-22 06:44: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: a2ef3943-9e66-41f6-aa0d-eb1a03e52200 Correlation ID: 244fbc07-a457-4071-9594-4f336ca4996b Timestamp: 2026-07-22 06:44:20Z - Correlation ID: 244fbc07-a457-4071-9594-4f336ca4996b - Trace ID: a2ef3943-9e66-41f6-aa0d-eb1a03e52200
Error getting the secret: invalid_client: 7000222 - [2026-07-22 06:44: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: 980864b7-cb32-42e8-a147-794c11e62500 Correlation ID: 6a71e098-b2c5-449c-af19-e1c196588977 Timestamp: 2026-07-22 06:44:20Z - Correlation ID: 6a71e098-b2c5-449c-af19-e1c196588977 - Trace ID: 980864b7-cb32-42e8-a147-794c11e62500
Error getting the secret: invalid_client: 7000222 - [2026-07-22 06:44: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: df27c1ac-4b2d-4e63-a895-c01ad5720c00 Correlation ID: a1bf46b6-8fcc-42f6-a74f-2d22d93d8981 Timestamp: 2026-07-22 06:44:21Z - Correlation ID: a1bf46b6-8fcc-42f6-a74f-2d22d93d8981 - Trace ID: df27c1ac-4b2d-4e63-a895-c01ad5720c00
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)