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-06-18 20:42:28Z]: 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: b47607b8-750f-4173-b114-0430055d0e00 Correlation ID: d18078de-813c-4879-bc03-5f0c1556fe84 Timestamp: 2026-06-18 20:42:28Z - Correlation ID: d18078de-813c-4879-bc03-5f0c1556fe84 - Trace ID: b47607b8-750f-4173-b114-0430055d0e00
(node:2496) [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-06-18 20:42:28Z]: 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: 14838956-de5a-4a83-9f55-711d87198a00 Correlation ID: 51301cd6-60cc-49aa-ad43-41d8ab4749e2 Timestamp: 2026-06-18 20:42:28Z - Correlation ID: 51301cd6-60cc-49aa-ad43-41d8ab4749e2 - Trace ID: 14838956-de5a-4a83-9f55-711d87198a00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 20:42:28Z]: 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: 6902bb9b-3593-464c-bd8e-7ddf33a21400 Correlation ID: c66f3101-2c2f-4088-b813-0b8b5194b26a Timestamp: 2026-06-18 20:42:28Z - Correlation ID: c66f3101-2c2f-4088-b813-0b8b5194b26a - Trace ID: 6902bb9b-3593-464c-bd8e-7ddf33a21400
Error getting the secret: invalid_client: 7000222 - [2026-06-18 20:42:29Z]: 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: 6902bb9b-3593-464c-bd8e-7ddf3ba21400 Correlation ID: 6a55e3f7-aaa3-4d1c-b898-5bcadc1937e4 Timestamp: 2026-06-18 20:42:29Z - Correlation ID: 6a55e3f7-aaa3-4d1c-b898-5bcadc1937e4 - Trace ID: 6902bb9b-3593-464c-bd8e-7ddf3ba21400
Error getting the secret: invalid_client: 7000222 - [2026-06-18 20:42:29Z]: 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: bea51153-5165-4333-a936-7799ee732100 Correlation ID: 2c4bbf73-119f-43a1-b50b-6b57df6cf4ec Timestamp: 2026-06-18 20:42:29Z - Correlation ID: 2c4bbf73-119f-43a1-b50b-6b57df6cf4ec - Trace ID: bea51153-5165-4333-a936-7799ee732100
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)