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-11 22:47:47Z]: 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: 7d144926-1761-47e0-bb44-3e42f6600800 Correlation ID: 4135555e-effd-4c0c-84db-1b62494ec05a Timestamp: 2026-07-11 22:47:47Z - Correlation ID: 4135555e-effd-4c0c-84db-1b62494ec05a - Trace ID: 7d144926-1761-47e0-bb44-3e42f6600800
(node:4204) [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-11 22:47:47Z]: 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: cbeb625b-5f02-47d5-8d73-abdab25d0800 Correlation ID: a89faf0f-e9e6-4240-8288-dc26ab05287b Timestamp: 2026-07-11 22:47:47Z - Correlation ID: a89faf0f-e9e6-4240-8288-dc26ab05287b - Trace ID: cbeb625b-5f02-47d5-8d73-abdab25d0800
Error getting the secret: invalid_client: 7000222 - [2026-07-11 22:47:47Z]: 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: a8dceb37-de1f-4997-82b7-76067d3acd00 Correlation ID: b32dfded-f5d2-41c5-b7d6-84317c4ff809 Timestamp: 2026-07-11 22:47:47Z - Correlation ID: b32dfded-f5d2-41c5-b7d6-84317c4ff809 - Trace ID: a8dceb37-de1f-4997-82b7-76067d3acd00
Error getting the secret: invalid_client: 7000222 - [2026-07-11 22:47:48Z]: 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: 107be8b6-cdcd-4066-ac54-62f835454600 Correlation ID: 4126865d-4148-429c-b0d9-1507f7b448aa Timestamp: 2026-07-11 22:47:48Z - Correlation ID: 4126865d-4148-429c-b0d9-1507f7b448aa - Trace ID: 107be8b6-cdcd-4066-ac54-62f835454600
Error getting the secret: invalid_client: 7000222 - [2026-07-11 22:47:49Z]: 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: 0b140698-2042-4996-9298-3453ff280300 Correlation ID: 3ad749c0-b98a-47a5-83db-dcf80d627558 Timestamp: 2026-07-11 22:47:49Z - Correlation ID: 3ad749c0-b98a-47a5-83db-dcf80d627558 - Trace ID: 0b140698-2042-4996-9298-3453ff280300
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)