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-04 23:32:05Z]: 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: da93f8f5-06a8-46a3-b9b1-4a3cbd391100 Correlation ID: 4f796b15-4151-4152-bcf8-94fcb9586e25 Timestamp: 2026-07-04 23:32:05Z - Correlation ID: 4f796b15-4151-4152-bcf8-94fcb9586e25 - Trace ID: da93f8f5-06a8-46a3-b9b1-4a3cbd391100
(node:4944) [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-04 23:32:05Z]: 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: 9afff2bd-0668-489c-af59-d68995c01800 Correlation ID: 49076d9a-02ab-4779-bbec-ec5b583cc4aa Timestamp: 2026-07-04 23:32:05Z - Correlation ID: 49076d9a-02ab-4779-bbec-ec5b583cc4aa - Trace ID: 9afff2bd-0668-489c-af59-d68995c01800
Error getting the secret: invalid_client: 7000222 - [2026-07-04 23:32:05Z]: 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: ac7a2e5e-2aa8-48f3-86c5-213554770f00 Correlation ID: 4ae6e1a4-35ac-481b-a0c6-b316ca3614d5 Timestamp: 2026-07-04 23:32:05Z - Correlation ID: 4ae6e1a4-35ac-481b-a0c6-b316ca3614d5 - Trace ID: ac7a2e5e-2aa8-48f3-86c5-213554770f00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 23:32:06Z]: 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: b403403c-dcf4-4d68-b88c-077939aa1300 Correlation ID: 55b64960-a856-4ed0-ba41-205d34742908 Timestamp: 2026-07-04 23:32:06Z - Correlation ID: 55b64960-a856-4ed0-ba41-205d34742908 - Trace ID: b403403c-dcf4-4d68-b88c-077939aa1300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 23:32:06Z]: 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: 9afff2bd-0668-489c-af59-d6899ec01800 Correlation ID: 40b26a2f-65e7-4106-85c7-c29f2bcdbc5e Timestamp: 2026-07-04 23:32:06Z - Correlation ID: 40b26a2f-65e7-4106-85c7-c29f2bcdbc5e - Trace ID: 9afff2bd-0668-489c-af59-d6899ec01800
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)