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-08 19:16:58Z]: 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: cef890c6-ebeb-4ccf-954a-66c104bc7200 Correlation ID: 3cf0c4e6-3ae8-4af9-85fd-5cd4d159a00c Timestamp: 2026-07-08 19:16:58Z - Correlation ID: 3cf0c4e6-3ae8-4af9-85fd-5cd4d159a00c - Trace ID: cef890c6-ebeb-4ccf-954a-66c104bc7200
(node:1056) [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-08 19:16:59Z]: 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: d3cf85ce-a6ed-4215-a3a7-f57fc9c70800 Correlation ID: 5394d72c-c873-42cd-af95-a833c515cb00 Timestamp: 2026-07-08 19:16:59Z - Correlation ID: 5394d72c-c873-42cd-af95-a833c515cb00 - Trace ID: d3cf85ce-a6ed-4215-a3a7-f57fc9c70800
Error getting the secret: invalid_client: 7000222 - [2026-07-08 19:16:59Z]: 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: 279ea121-ca3c-4dee-b494-c6c6b5f57f00 Correlation ID: c0c25bb6-0d79-49bc-827f-cba62a2066b0 Timestamp: 2026-07-08 19:16:59Z - Correlation ID: c0c25bb6-0d79-49bc-827f-cba62a2066b0 - Trace ID: 279ea121-ca3c-4dee-b494-c6c6b5f57f00
Error getting the secret: invalid_client: 7000222 - [2026-07-08 19:16:59Z]: 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: d9faea80-d394-4db7-975e-231a47937200 Correlation ID: c0a9d3c0-bb2a-4fa4-83cf-fc28c616e1f3 Timestamp: 2026-07-08 19:16:59Z - Correlation ID: c0a9d3c0-bb2a-4fa4-83cf-fc28c616e1f3 - Trace ID: d9faea80-d394-4db7-975e-231a47937200
Error getting the secret: invalid_client: 7000222 - [2026-07-08 19:17:00Z]: 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: d3cf85ce-a6ed-4215-a3a7-f57ffac70800 Correlation ID: 291489b1-17bc-4b19-a5c3-448d44709bde Timestamp: 2026-07-08 19:17:00Z - Correlation ID: 291489b1-17bc-4b19-a5c3-448d44709bde - Trace ID: d3cf85ce-a6ed-4215-a3a7-f57ffac70800
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)