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 19:38:23Z]: 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: dfa198bc-c6e0-4ac1-8de7-8993c9473500 Correlation ID: 43d777d7-598d-4376-80a9-e4559f8d0979 Timestamp: 2026-07-06 19:38:23Z - Correlation ID: 43d777d7-598d-4376-80a9-e4559f8d0979 - Trace ID: dfa198bc-c6e0-4ac1-8de7-8993c9473500
(node:5756) [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 19:38:24Z]: 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: ab608490-389b-4c1e-954a-f5c3208b3000 Correlation ID: 6dc76a49-25ed-4842-ab0c-e26499271ea5 Timestamp: 2026-07-06 19:38:24Z - Correlation ID: 6dc76a49-25ed-4842-ab0c-e26499271ea5 - Trace ID: ab608490-389b-4c1e-954a-f5c3208b3000
Error getting the secret: invalid_client: 7000222 - [2026-07-06 19:38:24Z]: 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: e57166ed-f85a-43ef-ba4a-9e4697e33c00 Correlation ID: 78dfd7e2-14de-4a73-88c3-e92e049345ab Timestamp: 2026-07-06 19:38:24Z - Correlation ID: 78dfd7e2-14de-4a73-88c3-e92e049345ab - Trace ID: e57166ed-f85a-43ef-ba4a-9e4697e33c00
Error getting the secret: invalid_client: 7000222 - [2026-07-06 19:38:24Z]: 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: d2a5f043-7032-469c-b809-0759ced74700 Correlation ID: b0e8abde-5de5-4a2b-939e-b0374fe28202 Timestamp: 2026-07-06 19:38:24Z - Correlation ID: b0e8abde-5de5-4a2b-939e-b0374fe28202 - Trace ID: d2a5f043-7032-469c-b809-0759ced74700
Error getting the secret: invalid_client: 7000222 - [2026-07-06 19:38:25Z]: 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: ab608490-389b-4c1e-954a-f5c3468b3000 Correlation ID: e0e47257-3bc7-4834-9da8-df0721ed8263 Timestamp: 2026-07-06 19:38:25Z - Correlation ID: e0e47257-3bc7-4834-9da8-df0721ed8263 - Trace ID: ab608490-389b-4c1e-954a-f5c3468b3000
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)