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-07 13:38: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: 57001b02-8777-4de4-bef5-070e71e35f00 Correlation ID: 5a91e622-10ba-4e4e-b1ba-5e6f249f02c6 Timestamp: 2026-07-07 13:38:19Z - Correlation ID: 5a91e622-10ba-4e4e-b1ba-5e6f249f02c6 - Trace ID: 57001b02-8777-4de4-bef5-070e71e35f00
(node:4832) [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-07 13:38: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: 0b0ac191-88df-47ae-97b8-ad8abb194a00 Correlation ID: 17076952-d396-41d5-814a-b08b2739c7ea Timestamp: 2026-07-07 13:38:20Z - Correlation ID: 17076952-d396-41d5-814a-b08b2739c7ea - Trace ID: 0b0ac191-88df-47ae-97b8-ad8abb194a00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 13:38: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: 0afe3fd1-9cdc-4ea0-a4e6-4ca7a7110800 Correlation ID: 925deedc-08f5-4cd2-a5e9-fcce9eaa4303 Timestamp: 2026-07-07 13:38:20Z - Correlation ID: 925deedc-08f5-4cd2-a5e9-fcce9eaa4303 - Trace ID: 0afe3fd1-9cdc-4ea0-a4e6-4ca7a7110800
Error getting the secret: invalid_client: 7000222 - [2026-07-07 13:38: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: d6b59524-ba01-4e54-835b-feb492024600 Correlation ID: c09e1824-1075-4b25-b51e-86960877705a Timestamp: 2026-07-07 13:38:20Z - Correlation ID: c09e1824-1075-4b25-b51e-86960877705a - Trace ID: d6b59524-ba01-4e54-835b-feb492024600
Error getting the secret: invalid_client: 7000222 - [2026-07-07 13:38: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: 0afe3fd1-9cdc-4ea0-a4e6-4ca7b2110800 Correlation ID: af6df65c-52d6-4591-9c10-c16be8bd5b43 Timestamp: 2026-07-07 13:38:20Z - Correlation ID: af6df65c-52d6-4591-9c10-c16be8bd5b43 - Trace ID: 0afe3fd1-9cdc-4ea0-a4e6-4ca7b2110800
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)