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-04 23:32:01Z]: 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: 2dd1bec3-40a2-483f-876b-0a99528c2000 Correlation ID: 21cdcd63-3f4f-4750-9138-2f60130cf333 Timestamp: 2026-07-04 23:32:01Z - Correlation ID: 21cdcd63-3f4f-4750-9138-2f60130cf333 - Trace ID: 2dd1bec3-40a2-483f-876b-0a99528c2000
(node:5912) [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-04 23:32:02Z]: 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: ab427b26-9a12-4941-a3cb-09cac5dc1e00 Correlation ID: af1560e9-01de-4882-8169-9373d3c6511d Timestamp: 2026-07-04 23:32:02Z - Correlation ID: af1560e9-01de-4882-8169-9373d3c6511d - Trace ID: ab427b26-9a12-4941-a3cb-09cac5dc1e00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 23:32:02Z]: 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: 28d362da-6d7d-4b54-b101-9ffd241e1300 Correlation ID: 1068406c-ea54-4368-bcbf-6c511e2bcf98 Timestamp: 2026-07-04 23:32:02Z - Correlation ID: 1068406c-ea54-4368-bcbf-6c511e2bcf98 - Trace ID: 28d362da-6d7d-4b54-b101-9ffd241e1300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 23:32:02Z]: 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: 28d362da-6d7d-4b54-b101-9ffd2d1e1300 Correlation ID: 082124ae-a3d5-4807-b57e-68d5bcf2c9db Timestamp: 2026-07-04 23:32:02Z - Correlation ID: 082124ae-a3d5-4807-b57e-68d5bcf2c9db - Trace ID: 28d362da-6d7d-4b54-b101-9ffd2d1e1300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 23:32:03Z]: 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: 28d362da-6d7d-4b54-b101-9ffd331e1300 Correlation ID: 01860884-9bda-45b6-9ab8-08bd09624a00 Timestamp: 2026-07-04 23:32:03Z - Correlation ID: 01860884-9bda-45b6-9ab8-08bd09624a00 - Trace ID: 28d362da-6d7d-4b54-b101-9ffd331e1300
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)