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 23:22:31Z]: 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: 4b0cea59-c0af-42dc-a2a2-98663a790f00 Correlation ID: 7c222209-1e6b-4e32-ac36-a1e8e96369e5 Timestamp: 2026-04-20 23:22:31Z - Correlation ID: 7c222209-1e6b-4e32-ac36-a1e8e96369e5 - Trace ID: 4b0cea59-c0af-42dc-a2a2-98663a790f00
(node:4656) [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 23:22:31Z]: 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: bcda7934-0b1c-4839-80d6-bc5f40dd1000 Correlation ID: acac0ec6-8833-425e-b0c4-fb4967b69525 Timestamp: 2026-04-20 23:22:31Z - Correlation ID: acac0ec6-8833-425e-b0c4-fb4967b69525 - Trace ID: bcda7934-0b1c-4839-80d6-bc5f40dd1000
Error getting the secret: invalid_client: 7000222 - [2026-04-20 23:22:32Z]: 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: 5369474b-e89b-43a1-9d67-1fee23ae1a00 Correlation ID: 10cb572b-6a5a-415f-876b-ba1b09b73bb0 Timestamp: 2026-04-20 23:22:32Z - Correlation ID: 10cb572b-6a5a-415f-876b-ba1b09b73bb0 - Trace ID: 5369474b-e89b-43a1-9d67-1fee23ae1a00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 23:22:32Z]: 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: cfb221e1-57ed-4fff-8d24-f3bea8b31f00 Correlation ID: 1e6efc9e-dcd9-4c33-a159-53d72f61b548 Timestamp: 2026-04-20 23:22:32Z - Correlation ID: 1e6efc9e-dcd9-4c33-a159-53d72f61b548 - Trace ID: cfb221e1-57ed-4fff-8d24-f3bea8b31f00
Error getting the secret: invalid_client: 7000222 - [2026-04-20 23:22:32Z]: 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: 5819e2d7-458f-4c43-9dfe-440782d51400 Correlation ID: 1338bb59-214b-49be-8f24-0dc06311e8f7 Timestamp: 2026-04-20 23:22:32Z - Correlation ID: 1338bb59-214b-49be-8f24-0dc06311e8f7 - Trace ID: 5819e2d7-458f-4c43-9dfe-440782d51400
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)