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-04-20 14:31:43Z]: 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: 27a8793e-e5c7-4a7a-aa7c-6bb5eea61300 Correlation ID: d3016bdd-6783-4904-8de1-814ffbf2b009 Timestamp: 2026-04-20 14:31:43Z - Correlation ID: d3016bdd-6783-4904-8de1-814ffbf2b009 - Trace ID: 27a8793e-e5c7-4a7a-aa7c-6bb5eea61300
(node:5096) [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-04-20 14:31:44Z]: 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: b7f2705d-029b-4607-a02e-5ce850dd0e00 Correlation ID: e6bca262-5ee7-476e-a5cf-031bd180a961 Timestamp: 2026-04-20 14:31:44Z - Correlation ID: e6bca262-5ee7-476e-a5cf-031bd180a961 - Trace ID: b7f2705d-029b-4607-a02e-5ce850dd0e00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 14:31:44Z]: 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: 8a04d5f9-7188-4616-8437-14c8da4c1200 Correlation ID: dc6c5ed9-4ac9-426d-a145-ed6685a95a9f Timestamp: 2026-04-20 14:31:44Z - Correlation ID: dc6c5ed9-4ac9-426d-a145-ed6685a95a9f - Trace ID: 8a04d5f9-7188-4616-8437-14c8da4c1200
Error getting the secret: invalid_client: 7000222 - [2026-04-20 14:31:44Z]: 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: d79e876d-9d16-40a6-bef1-89c6188a0f00 Correlation ID: 39a69057-1dc4-4fba-9826-a2188efb2e8b Timestamp: 2026-04-20 14:31:44Z - Correlation ID: 39a69057-1dc4-4fba-9826-a2188efb2e8b - Trace ID: d79e876d-9d16-40a6-bef1-89c6188a0f00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 14:31:45Z]: 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: 6e8be468-b922-43cf-bee8-49a22fff0500 Correlation ID: c99fb4c4-d896-4327-969c-e686faf708d8 Timestamp: 2026-04-20 14:31:45Z - Correlation ID: c99fb4c4-d896-4327-969c-e686faf708d8 - Trace ID: 6e8be468-b922-43cf-bee8-49a22fff0500
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)