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-17 07:34: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: efb96ee7-9e1a-498b-aaff-88e786d73d00 Correlation ID: b0fe9b73-796a-4b11-8995-d37ea9f2da86 Timestamp: 2026-07-17 07:34:29Z - Correlation ID: b0fe9b73-796a-4b11-8995-d37ea9f2da86 - Trace ID: efb96ee7-9e1a-498b-aaff-88e786d73d00
(node:2816) [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-17 07:34: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: 04d0dd0f-b8f4-4874-940b-824ad5e34700 Correlation ID: c6e18aa6-a78e-4356-8f31-6019873eae78 Timestamp: 2026-07-17 07:34:29Z - Correlation ID: c6e18aa6-a78e-4356-8f31-6019873eae78 - Trace ID: 04d0dd0f-b8f4-4874-940b-824ad5e34700
Error getting the secret: invalid_client: 7000222 - [2026-07-17 07:34: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: a7a9a888-9831-4997-a6bb-972843fc2300 Correlation ID: 1c107a76-9d8f-4a23-b413-0e554561b138 Timestamp: 2026-07-17 07:34:29Z - Correlation ID: 1c107a76-9d8f-4a23-b413-0e554561b138 - Trace ID: a7a9a888-9831-4997-a6bb-972843fc2300
Error getting the secret: invalid_client: 7000222 - [2026-07-17 07:34: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: 04d0dd0f-b8f4-4874-940b-824adde34700 Correlation ID: 34e07d5b-69d1-44c7-9764-4ba95ea56ac0 Timestamp: 2026-07-17 07:34:29Z - Correlation ID: 34e07d5b-69d1-44c7-9764-4ba95ea56ac0 - Trace ID: 04d0dd0f-b8f4-4874-940b-824adde34700
Error getting the secret: invalid_client: 7000222 - [2026-07-17 07:34: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: 0ab93f30-aa03-49e8-ae20-26046ae73000 Correlation ID: 7f25c474-4072-4bed-a9da-b1b4c44e091f Timestamp: 2026-07-17 07:34:29Z - Correlation ID: 7f25c474-4072-4bed-a9da-b1b4c44e091f - Trace ID: 0ab93f30-aa03-49e8-ae20-26046ae73000
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)