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-18 15:45:36Z]: 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: e6e43ea6-871a-4fb7-9dc2-bae86ae10a00 Correlation ID: 5b082144-a761-4f23-a694-434d5ed0c099 Timestamp: 2026-07-18 15:45:36Z - Correlation ID: 5b082144-a761-4f23-a694-434d5ed0c099 - Trace ID: e6e43ea6-871a-4fb7-9dc2-bae86ae10a00
(node:2880) [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-18 15:45:36Z]: 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: 536707d9-9d29-4730-b120-04a305e30600 Correlation ID: a0ad8e42-8b9b-416a-94d9-117596ff3db4 Timestamp: 2026-07-18 15:45:36Z - Correlation ID: a0ad8e42-8b9b-416a-94d9-117596ff3db4 - Trace ID: 536707d9-9d29-4730-b120-04a305e30600
Error getting the secret: invalid_client: 7000222 - [2026-07-18 15:45:37Z]: 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: 60fe22d2-707b-4911-a383-7c8f5e560700 Correlation ID: a807c6f5-300f-44ad-807a-5e2bfa2fccd3 Timestamp: 2026-07-18 15:45:37Z - Correlation ID: a807c6f5-300f-44ad-807a-5e2bfa2fccd3 - Trace ID: 60fe22d2-707b-4911-a383-7c8f5e560700
Error getting the secret: invalid_client: 7000222 - [2026-07-18 15:45:37Z]: 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: eb2f6c81-fb22-453d-8a13-c54990514000 Correlation ID: 6e9c8e2a-b02b-487e-8cb7-4875095d08bf Timestamp: 2026-07-18 15:45:37Z - Correlation ID: 6e9c8e2a-b02b-487e-8cb7-4875095d08bf - Trace ID: eb2f6c81-fb22-453d-8a13-c54990514000
Error getting the secret: invalid_client: 7000222 - [2026-07-18 15:45:37Z]: 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: 60fe22d2-707b-4911-a383-7c8f70560700 Correlation ID: ad54d612-17cf-4158-b687-bc6bb0f86fe9 Timestamp: 2026-07-18 15:45:37Z - Correlation ID: ad54d612-17cf-4158-b687-bc6bb0f86fe9 - Trace ID: 60fe22d2-707b-4911-a383-7c8f70560700
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)