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-26 06:17: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: f2167efa-b42b-4d5e-94bd-75850d6d4c00 Correlation ID: 0683051a-3dc4-4ed2-bbfb-0800a9b7f82d Timestamp: 2026-07-26 06:17:59Z - Correlation ID: 0683051a-3dc4-4ed2-bbfb-0800a9b7f82d - Trace ID: f2167efa-b42b-4d5e-94bd-75850d6d4c00
(node:692) [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-26 06:18: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: e822f56c-6cbf-4a76-ad2c-83464e0a1500 Correlation ID: 299a91ca-ac37-42dd-83cc-e347ee4bf47a Timestamp: 2026-07-26 06:18:00Z - Correlation ID: 299a91ca-ac37-42dd-83cc-e347ee4bf47a - Trace ID: e822f56c-6cbf-4a76-ad2c-83464e0a1500
Error getting the secret: invalid_client: 7000222 - [2026-07-26 06:18: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: bf19fdaf-533b-4772-9237-95c47d511300 Correlation ID: 175134ab-68b8-450f-91a0-ef552de55086 Timestamp: 2026-07-26 06:18:00Z - Correlation ID: 175134ab-68b8-450f-91a0-ef552de55086 - Trace ID: bf19fdaf-533b-4772-9237-95c47d511300
Error getting the secret: invalid_client: 7000222 - [2026-07-26 06:18: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: 20d75518-a8b7-4e33-9232-edd599c95500 Correlation ID: 95c78bea-dd8a-49d5-9c69-5a8a4c2b82bd Timestamp: 2026-07-26 06:18:00Z - Correlation ID: 95c78bea-dd8a-49d5-9c69-5a8a4c2b82bd - Trace ID: 20d75518-a8b7-4e33-9232-edd599c95500
Error getting the secret: invalid_client: 7000222 - [2026-07-26 06:18: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: fbb06f3c-ff7b-423e-96bd-25443d671700 Correlation ID: f9c9b891-6964-49f3-b5a8-0bb7fbb974d8 Timestamp: 2026-07-26 06:18:00Z - Correlation ID: f9c9b891-6964-49f3-b5a8-0bb7fbb974d8 - Trace ID: fbb06f3c-ff7b-423e-96bd-25443d671700
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)