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-25 10:42:07Z]: 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: b9b5dbea-00a1-4b21-a7a6-38685f451200 Correlation ID: 71c531bb-8369-47bb-b269-78b23dc9f08c Timestamp: 2026-07-25 10:42:07Z - Correlation ID: 71c531bb-8369-47bb-b269-78b23dc9f08c - Trace ID: b9b5dbea-00a1-4b21-a7a6-38685f451200
(node:2040) [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-25 10:42:07Z]: 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: 5880251b-153b-45ef-8c89-204c58e14900 Correlation ID: d0905434-448c-48be-adf9-bb64884333a7 Timestamp: 2026-07-25 10:42:07Z - Correlation ID: d0905434-448c-48be-adf9-bb64884333a7 - Trace ID: 5880251b-153b-45ef-8c89-204c58e14900
Error getting the secret: invalid_client: 7000222 - [2026-07-25 10:42:08Z]: 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: 1cdb761d-e418-4b70-bfbb-96f15ab64c00 Correlation ID: 5e6c3be6-92f3-4cc3-a9cf-02d1faa4a4be Timestamp: 2026-07-25 10:42:08Z - Correlation ID: 5e6c3be6-92f3-4cc3-a9cf-02d1faa4a4be - Trace ID: 1cdb761d-e418-4b70-bfbb-96f15ab64c00
Error getting the secret: invalid_client: 7000222 - [2026-07-25 10:42:08Z]: 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: 5880251b-153b-45ef-8c89-204c5de14900 Correlation ID: cbc5eee4-a4f6-4d30-b5b2-c3b75bc361da Timestamp: 2026-07-25 10:42:08Z - Correlation ID: cbc5eee4-a4f6-4d30-b5b2-c3b75bc361da - Trace ID: 5880251b-153b-45ef-8c89-204c5de14900
Error getting the secret: invalid_client: 7000222 - [2026-07-25 10:42:08Z]: 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: 5b43ee6f-54e4-4733-a45f-b35c12ec2b00 Correlation ID: 1b535e93-fd7f-4ddf-aed4-2d5747ac25bc Timestamp: 2026-07-25 10:42:08Z - Correlation ID: 1b535e93-fd7f-4ddf-aed4-2d5747ac25bc - Trace ID: 5b43ee6f-54e4-4733-a45f-b35c12ec2b00
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)