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-19 01:47:34Z]: 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: 48e067c1-3ed8-4136-a653-445a04ad4d00 Correlation ID: bf4a90e2-0289-462e-beac-800fbed38712 Timestamp: 2026-07-19 01:47:34Z - Correlation ID: bf4a90e2-0289-462e-beac-800fbed38712 - Trace ID: 48e067c1-3ed8-4136-a653-445a04ad4d00
(node:1784) [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-19 01:47:34Z]: 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: 02146d99-32a3-401a-b555-1cb5e2000600 Correlation ID: b32ed24a-9485-4c17-8f90-fe84d740491d Timestamp: 2026-07-19 01:47:34Z - Correlation ID: b32ed24a-9485-4c17-8f90-fe84d740491d - Trace ID: 02146d99-32a3-401a-b555-1cb5e2000600
Error getting the secret: invalid_client: 7000222 - [2026-07-19 01:47:34Z]: 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: 48e067c1-3ed8-4136-a653-445a10ad4d00 Correlation ID: 1a739ffe-2670-49b9-b6dc-6f2e2fbed2eb Timestamp: 2026-07-19 01:47:34Z - Correlation ID: 1a739ffe-2670-49b9-b6dc-6f2e2fbed2eb - Trace ID: 48e067c1-3ed8-4136-a653-445a10ad4d00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 01:47:34Z]: 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: 9daad93c-9537-45dd-88e8-35edc8840c00 Correlation ID: 8604fb8b-1ecf-4f1f-b19e-abb700a047c8 Timestamp: 2026-07-19 01:47:34Z - Correlation ID: 8604fb8b-1ecf-4f1f-b19e-abb700a047c8 - Trace ID: 9daad93c-9537-45dd-88e8-35edc8840c00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 01:47:35Z]: 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: 4896b21a-a8c5-414c-9b83-440cce210600 Correlation ID: 8cc7ab0a-1803-4771-bd59-b2e849523a4e Timestamp: 2026-07-19 01:47:35Z - Correlation ID: 8cc7ab0a-1803-4771-bd59-b2e849523a4e - Trace ID: 4896b21a-a8c5-414c-9b83-440cce210600
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)