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-06 07:40:40Z]: 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: 004e8c6a-1ac3-4cf3-ad4b-56c8bf8c3300 Correlation ID: 53497eb9-5dbd-4744-bded-c86433bc3fcf Timestamp: 2026-07-06 07:40:40Z - Correlation ID: 53497eb9-5dbd-4744-bded-c86433bc3fcf - Trace ID: 004e8c6a-1ac3-4cf3-ad4b-56c8bf8c3300
(node:4816) [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-06 07:40:40Z]: 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: e8ee48d9-2d88-45ce-b26e-fca1c9b12200 Correlation ID: 016b8e9f-b2a1-485f-822a-a5bc21473dec Timestamp: 2026-07-06 07:40:40Z - Correlation ID: 016b8e9f-b2a1-485f-822a-a5bc21473dec - Trace ID: e8ee48d9-2d88-45ce-b26e-fca1c9b12200
Error getting the secret: invalid_client: 7000222 - [2026-07-06 07:40:40Z]: 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: 20235a5a-9536-4ccf-94c9-bdd3dea02e00 Correlation ID: 3f1f9ecd-2bd4-4c00-adfb-65c11ac9c253 Timestamp: 2026-07-06 07:40:40Z - Correlation ID: 3f1f9ecd-2bd4-4c00-adfb-65c11ac9c253 - Trace ID: 20235a5a-9536-4ccf-94c9-bdd3dea02e00
Error getting the secret: invalid_client: 7000222 - [2026-07-06 07:40:41Z]: 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: f960a687-f16a-4f94-a59b-3dc560712800 Correlation ID: 4f67381d-02ac-427a-a3f1-15da625d5441 Timestamp: 2026-07-06 07:40:41Z - Correlation ID: 4f67381d-02ac-427a-a3f1-15da625d5441 - Trace ID: f960a687-f16a-4f94-a59b-3dc560712800
Error getting the secret: invalid_client: 7000222 - [2026-07-06 07:40:41Z]: 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: e6d47c42-f7b0-46bc-9d27-ac43571e3700 Correlation ID: 66a6a5c7-229d-4af7-9924-94d56c02fbbf Timestamp: 2026-07-06 07:40:41Z - Correlation ID: 66a6a5c7-229d-4af7-9924-94d56c02fbbf - Trace ID: e6d47c42-f7b0-46bc-9d27-ac43571e3700
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)