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-17 12:15:46Z]: 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: c6c21138-25d3-4b81-b548-1de4cc1a3a00 Correlation ID: 19629060-5e73-4b07-a088-fc26bf687df9 Timestamp: 2026-06-17 12:15:46Z - Correlation ID: 19629060-5e73-4b07-a088-fc26bf687df9 - Trace ID: c6c21138-25d3-4b81-b548-1de4cc1a3a00
(node:3088) [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-17 12:15:46Z]: 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: 10b2c4af-c7a3-4960-a026-5fc5912a2900 Correlation ID: 64d4751e-f7bf-49a4-9818-773fac371a86 Timestamp: 2026-06-17 12:15:46Z - Correlation ID: 64d4751e-f7bf-49a4-9818-773fac371a86 - Trace ID: 10b2c4af-c7a3-4960-a026-5fc5912a2900
Error getting the secret: invalid_client: 7000222 - [2026-06-17 12:15:47Z]: 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: 0f86e934-4d55-4993-9d6f-985406666300 Correlation ID: 3406f1e6-11af-4b58-b0e2-ef47e31345bc Timestamp: 2026-06-17 12:15:47Z - Correlation ID: 3406f1e6-11af-4b58-b0e2-ef47e31345bc - Trace ID: 0f86e934-4d55-4993-9d6f-985406666300
Error getting the secret: invalid_client: 7000222 - [2026-06-17 12:15:47Z]: 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: 2cf1a5b3-87bc-47bf-84cb-22968eca5c00 Correlation ID: 0885b4bf-4152-44ec-816a-2fefab19f55e Timestamp: 2026-06-17 12:15:47Z - Correlation ID: 0885b4bf-4152-44ec-816a-2fefab19f55e - Trace ID: 2cf1a5b3-87bc-47bf-84cb-22968eca5c00
Error getting the secret: invalid_client: 7000222 - [2026-06-17 12:15:47Z]: 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: 10b2c4af-c7a3-4960-a026-5fc5b52a2900 Correlation ID: 624efa08-4ded-49b2-a8d9-76bc9dd3c8cd Timestamp: 2026-06-17 12:15:47Z - Correlation ID: 624efa08-4ded-49b2-a8d9-76bc9dd3c8cd - Trace ID: 10b2c4af-c7a3-4960-a026-5fc5b52a2900
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)