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 09:30: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: 42c03a49-ad6d-418c-9fb5-963ce55c2b00 Correlation ID: c1e126e7-3bcb-48ea-8f3a-65a044858ca5 Timestamp: 2026-07-06 09:30:29Z - Correlation ID: c1e126e7-3bcb-48ea-8f3a-65a044858ca5 - Trace ID: 42c03a49-ad6d-418c-9fb5-963ce55c2b00
(node:1880) [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 09:30: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: 3c3a5df9-7931-475b-851d-47d6d44e2700 Correlation ID: af6f6be1-0bcb-4e39-bf98-8e5d31b50ae4 Timestamp: 2026-07-06 09:30:29Z - Correlation ID: af6f6be1-0bcb-4e39-bf98-8e5d31b50ae4 - Trace ID: 3c3a5df9-7931-475b-851d-47d6d44e2700
Error getting the secret: invalid_client: 7000222 - [2026-07-06 09:30:30Z]: 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: fd441ac1-7697-425a-bff8-8537d6560200 Correlation ID: 536f23b2-d967-4fd2-90eb-15604e270b6a Timestamp: 2026-07-06 09:30:30Z - Correlation ID: 536f23b2-d967-4fd2-90eb-15604e270b6a - Trace ID: fd441ac1-7697-425a-bff8-8537d6560200
Error getting the secret: invalid_client: 7000222 - [2026-07-06 09:30:30Z]: 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: 68bd8385-0552-4b6c-8508-2b3901990100 Correlation ID: 8463c9f1-7adc-40ac-a4d1-d1e8b761cdc0 Timestamp: 2026-07-06 09:30:30Z - Correlation ID: 8463c9f1-7adc-40ac-a4d1-d1e8b761cdc0 - Trace ID: 68bd8385-0552-4b6c-8508-2b3901990100
Error getting the secret: invalid_client: 7000222 - [2026-07-06 09:30:30Z]: 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: 1a98c3b3-b6f0-45b2-9206-706c82c13b00 Correlation ID: 062c32d9-3aa2-4745-a1d9-2df300f1f2c4 Timestamp: 2026-07-06 09:30:30Z - Correlation ID: 062c32d9-3aa2-4745-a1d9-2df300f1f2c4 - Trace ID: 1a98c3b3-b6f0-45b2-9206-706c82c13b00
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)