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-10-06 06:07:15Z]: 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: 5bda0b81-6077-4371-acdc-6de5da44cc00 Correlation ID: 293ea22e-71a2-4c65-8e2e-b4a16ecf55af Timestamp: 2026-10-06 06:07:15Z - Correlation ID: 293ea22e-71a2-4c65-8e2e-b4a16ecf55af - Trace ID: 5bda0b81-6077-4371-acdc-6de5da44cc00
(node:2584) [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-10-06 06:07:15Z]: 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: 88d049a9-de20-4bdc-8551-c83761c31100 Correlation ID: e8392497-bd09-4917-a7c9-66245dae4d2e Timestamp: 2026-10-06 06:07:15Z - Correlation ID: e8392497-bd09-4917-a7c9-66245dae4d2e - Trace ID: 88d049a9-de20-4bdc-8551-c83761c31100
Error getting the secret: invalid_client: 7000222 - [2026-10-06 06:07:16Z]: 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: 88d049a9-de20-4bdc-8551-c83768c31100 Correlation ID: 08fbe4de-2a6c-4354-b4b5-6a207c9b1c49 Timestamp: 2026-10-06 06:07:16Z - Correlation ID: 08fbe4de-2a6c-4354-b4b5-6a207c9b1c49 - Trace ID: 88d049a9-de20-4bdc-8551-c83768c31100
Error getting the secret: invalid_client: 7000222 - [2026-10-06 06:07:16Z]: 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: a83dd89c-109d-4079-a049-ae02cb26f500 Correlation ID: c7d8510f-070c-4bc8-9842-56c5262b0bc3 Timestamp: 2026-10-06 06:07:16Z - Correlation ID: c7d8510f-070c-4bc8-9842-56c5262b0bc3 - Trace ID: a83dd89c-109d-4079-a049-ae02cb26f500
Error getting the secret: invalid_client: 7000222 - [2026-10-06 06:07:16Z]: 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: e8d1c96b-ad04-4773-b78e-20588572f300 Correlation ID: d3fe94b4-2655-4362-9a84-1b31d157c0a1 Timestamp: 2026-10-06 06:07:16Z - Correlation ID: d3fe94b4-2655-4362-9a84-1b31d157c0a1 - Trace ID: e8d1c96b-ad04-4773-b78e-20588572f300
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)