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-22 00:43: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: 25d659db-d5d8-491a-ad6d-5502e4c71b00 Correlation ID: 70ccda92-c595-46c0-8495-bb315df792ad Timestamp: 2026-07-22 00:43:31Z - Correlation ID: 70ccda92-c595-46c0-8495-bb315df792ad - Trace ID: 25d659db-d5d8-491a-ad6d-5502e4c71b00
(node:5516) [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-22 00:43: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: ecbd998e-4efc-435f-b049-743637112600 Correlation ID: 52eb37c8-aaba-4a44-823f-d80c2fdce8fb Timestamp: 2026-07-22 00:43:31Z - Correlation ID: 52eb37c8-aaba-4a44-823f-d80c2fdce8fb - Trace ID: ecbd998e-4efc-435f-b049-743637112600
Error getting the secret: invalid_client: 7000222 - [2026-07-22 00:43: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: d49ca2d9-4893-473a-b05a-5d42f90a3500 Correlation ID: cf506e65-9abc-4e59-b2f2-d325882b0e79 Timestamp: 2026-07-22 00:43:31Z - Correlation ID: cf506e65-9abc-4e59-b2f2-d325882b0e79 - Trace ID: d49ca2d9-4893-473a-b05a-5d42f90a3500
Error getting the secret: invalid_client: 7000222 - [2026-07-22 00:43: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: 6f40cda5-4f9a-40f1-9d34-662ec2791c00 Correlation ID: e0d1df6b-8f1c-4c6f-8089-d4fb7fe24498 Timestamp: 2026-07-22 00:43:31Z - Correlation ID: e0d1df6b-8f1c-4c6f-8089-d4fb7fe24498 - Trace ID: 6f40cda5-4f9a-40f1-9d34-662ec2791c00
Error getting the secret: invalid_client: 7000222 - [2026-07-22 00:43: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: 2ef6a813-c0ce-4c68-8686-9d07fda63500 Correlation ID: 266866ef-ce17-42ec-96eb-199fc7dc3821 Timestamp: 2026-07-22 00:43:31Z - Correlation ID: 266866ef-ce17-42ec-96eb-199fc7dc3821 - Trace ID: 2ef6a813-c0ce-4c68-8686-9d07fda63500
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)