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-06-18 22:49: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: b373da34-2fda-4973-b5dc-7df187618200 Correlation ID: a3c91f8d-31e6-4687-b290-db4ed50ea033 Timestamp: 2026-06-18 22:49:18Z - Correlation ID: a3c91f8d-31e6-4687-b290-db4ed50ea033 - Trace ID: b373da34-2fda-4973-b5dc-7df187618200
(node:4200) [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-06-18 22:49:19Z]: 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: 1971c54d-e378-4e8c-8193-0e34a08a1500 Correlation ID: 34b8b0e1-9a65-4280-8d39-c9c8da91cbff Timestamp: 2026-06-18 22:49:19Z - Correlation ID: 34b8b0e1-9a65-4280-8d39-c9c8da91cbff - Trace ID: 1971c54d-e378-4e8c-8193-0e34a08a1500
Error getting the secret: invalid_client: 7000222 - [2026-06-18 22:49:19Z]: 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: 29c1b948-9b61-4d3c-bd79-a473b927a400 Correlation ID: 397b96a9-83b2-4f36-a81a-5f2b3ccc3ebe Timestamp: 2026-06-18 22:49:19Z - Correlation ID: 397b96a9-83b2-4f36-a81a-5f2b3ccc3ebe - Trace ID: 29c1b948-9b61-4d3c-bd79-a473b927a400
Error getting the secret: invalid_client: 7000222 - [2026-06-18 22:49:19Z]: 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: b544bf2e-0a97-40fd-8f36-b04d36381500 Correlation ID: fc9b3a36-2bc7-4bb4-9253-15eaeb205916 Timestamp: 2026-06-18 22:49:19Z - Correlation ID: fc9b3a36-2bc7-4bb4-9253-15eaeb205916 - Trace ID: b544bf2e-0a97-40fd-8f36-b04d36381500
Error getting the secret: invalid_client: 7000222 - [2026-06-18 22:49: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: 0680c07a-b872-4345-96ca-2ef4c1fb5200 Correlation ID: d466f0c0-4914-42c6-8320-22712b8d04de Timestamp: 2026-06-18 22:49:20Z - Correlation ID: d466f0c0-4914-42c6-8320-22712b8d04de - Trace ID: 0680c07a-b872-4345-96ca-2ef4c1fb5200
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)