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-26 05:16:56Z]: 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: 451ecfd6-d9d2-4860-bc70-225ae2341b00 Correlation ID: 2fad69de-8c96-4913-9e3b-3dafa708419d Timestamp: 2026-02-26 05:16:56Z - Correlation ID: 2fad69de-8c96-4913-9e3b-3dafa708419d - Trace ID: 451ecfd6-d9d2-4860-bc70-225ae2341b00
(node:3704) [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-26 05:16:57Z]: 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: 451ecfd6-d9d2-4860-bc70-225ae9341b00 Correlation ID: b3158365-7046-49c3-9dce-f3e76f376c01 Timestamp: 2026-02-26 05:16:57Z - Correlation ID: b3158365-7046-49c3-9dce-f3e76f376c01 - Trace ID: 451ecfd6-d9d2-4860-bc70-225ae9341b00
Error getting the secret: invalid_client: 7000222 - [2026-02-26 05:16:57Z]: 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: cc4c89e2-e26a-49cf-bdfc-ff76e0e39200 Correlation ID: 53f3d544-1f63-4516-9fa9-03424a8dc0ec Timestamp: 2026-02-26 05:16:57Z - Correlation ID: 53f3d544-1f63-4516-9fa9-03424a8dc0ec - Trace ID: cc4c89e2-e26a-49cf-bdfc-ff76e0e39200
Error getting the secret: invalid_client: 7000222 - [2026-02-26 05:16:57Z]: 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: a7dc17ff-6d66-404f-8455-40da4403a100 Correlation ID: e6c51aa9-1412-4aad-8cf2-d0bf5bf264de Timestamp: 2026-02-26 05:16:57Z - Correlation ID: e6c51aa9-1412-4aad-8cf2-d0bf5bf264de - Trace ID: a7dc17ff-6d66-404f-8455-40da4403a100
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)