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 13:33:26Z]: 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: e2168f22-11b7-4f09-8ebf-88add7350600 Correlation ID: 8799d3e3-f3db-47af-912e-52c76f197f1d Timestamp: 2026-07-18 13:33:26Z - Correlation ID: 8799d3e3-f3db-47af-912e-52c76f197f1d - Trace ID: e2168f22-11b7-4f09-8ebf-88add7350600
(node:4748) [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 13:33:27Z]: 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: fd9c0e71-eb4a-42ae-b3f1-d382d6610400 Correlation ID: ff4fea74-cf91-41fd-857c-3d4e83f7be0a Timestamp: 2026-07-18 13:33:27Z - Correlation ID: ff4fea74-cf91-41fd-857c-3d4e83f7be0a - Trace ID: fd9c0e71-eb4a-42ae-b3f1-d382d6610400
Error getting the secret: invalid_client: 7000222 - [2026-07-18 13:33:27Z]: 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: b920520a-8caf-448b-9991-52f675ec0600 Correlation ID: e00ccc56-0a38-46fb-b77d-df5b2afab825 Timestamp: 2026-07-18 13:33:27Z - Correlation ID: e00ccc56-0a38-46fb-b77d-df5b2afab825 - Trace ID: b920520a-8caf-448b-9991-52f675ec0600
Error getting the secret: invalid_client: 7000222 - [2026-07-18 13:33:27Z]: 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: 73f7933e-dd66-4ee3-ba91-21e6ad863f00 Correlation ID: adeeab68-71c7-415f-b20f-de56a242ff37 Timestamp: 2026-07-18 13:33:27Z - Correlation ID: adeeab68-71c7-415f-b20f-de56a242ff37 - Trace ID: 73f7933e-dd66-4ee3-ba91-21e6ad863f00
Error getting the secret: invalid_client: 7000222 - [2026-07-18 13:33:27Z]: 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: e7baa550-b8d7-4f4b-91fd-a99fd1a24900 Correlation ID: e473efa6-42f5-4d82-9f1b-77c904528fef Timestamp: 2026-07-18 13:33:27Z - Correlation ID: e473efa6-42f5-4d82-9f1b-77c904528fef - Trace ID: e7baa550-b8d7-4f4b-91fd-a99fd1a24900
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)