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-09 15:31:17Z]: 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: b6b9439d-aaa4-4fdd-a4ba-1b418efb0a00 Correlation ID: c23c4941-f9c0-4fc7-8646-79e2b148c5a2 Timestamp: 2026-07-09 15:31:17Z - Correlation ID: c23c4941-f9c0-4fc7-8646-79e2b148c5a2 - Trace ID: b6b9439d-aaa4-4fdd-a4ba-1b418efb0a00
(node:5548) [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-09 15:31:17Z]: 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: 3ad343f9-001d-47d8-89a4-c1ac8a7c1100 Correlation ID: 480d33bb-dac3-49fa-83fb-8f8d2459e554 Timestamp: 2026-07-09 15:31:17Z - Correlation ID: 480d33bb-dac3-49fa-83fb-8f8d2459e554 - Trace ID: 3ad343f9-001d-47d8-89a4-c1ac8a7c1100
Error getting the secret: invalid_client: 7000222 - [2026-07-09 15:31:18Z]: 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: f71e9267-01de-42e9-9b0c-7043da73a100 Correlation ID: 5ac81451-b5dc-4cd6-8253-fd3363076ce5 Timestamp: 2026-07-09 15:31:18Z - Correlation ID: 5ac81451-b5dc-4cd6-8253-fd3363076ce5 - Trace ID: f71e9267-01de-42e9-9b0c-7043da73a100
Error getting the secret: invalid_client: 7000222 - [2026-07-09 15:31:19Z]: 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: 4c0d321e-5887-4c4a-9e91-dbfc07ae3100 Correlation ID: 71907188-153e-4bab-95e4-98ee60ffd2b3 Timestamp: 2026-07-09 15:31:19Z - Correlation ID: 71907188-153e-4bab-95e4-98ee60ffd2b3 - Trace ID: 4c0d321e-5887-4c4a-9e91-dbfc07ae3100
Error getting the secret: invalid_client: 7000222 - [2026-07-09 15:31:19Z]: 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: 38200d88-a9e0-4f07-a374-563c7ac80a00 Correlation ID: da748350-9ede-4ab2-aaab-9ce63ef82bd8 Timestamp: 2026-07-09 15:31:19Z - Correlation ID: da748350-9ede-4ab2-aaab-9ce63ef82bd8 - Trace ID: 38200d88-a9e0-4f07-a374-563c7ac80a00
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)