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-20 11:33:56Z]: 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: 702f1bc4-e112-40a3-b697-61397d232c00 Correlation ID: b15128d7-5e34-4f4e-ba26-a08d1455a6ea Timestamp: 2026-07-20 11:33:56Z - Correlation ID: b15128d7-5e34-4f4e-ba26-a08d1455a6ea - Trace ID: 702f1bc4-e112-40a3-b697-61397d232c00
(node:3680) [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-20 11:33:56Z]: 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: f4399487-c102-402d-b1a8-3d03490a0900 Correlation ID: 522b7a57-795f-4e2a-872d-d35ea35aea68 Timestamp: 2026-07-20 11:33:56Z - Correlation ID: 522b7a57-795f-4e2a-872d-d35ea35aea68 - Trace ID: f4399487-c102-402d-b1a8-3d03490a0900
Error getting the secret: invalid_client: 7000222 - [2026-07-20 11:33:56Z]: 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: f4399487-c102-402d-b1a8-3d034d0a0900 Correlation ID: eec288a5-df7c-40ae-84cf-746174510458 Timestamp: 2026-07-20 11:33:56Z - Correlation ID: eec288a5-df7c-40ae-84cf-746174510458 - Trace ID: f4399487-c102-402d-b1a8-3d034d0a0900
Error getting the secret: invalid_client: 7000222 - [2026-07-20 11:33:56Z]: 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: f4399487-c102-402d-b1a8-3d03540a0900 Correlation ID: 57ba1de0-36e3-4c80-8a8b-10c8736c1e7d Timestamp: 2026-07-20 11:33:56Z - Correlation ID: 57ba1de0-36e3-4c80-8a8b-10c8736c1e7d - Trace ID: f4399487-c102-402d-b1a8-3d03540a0900
Error getting the secret: invalid_client: 7000222 - [2026-07-20 11:33:56Z]: 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: f536e1fb-c087-4ecd-a156-87a068cb2400 Correlation ID: bb689599-a684-4d8c-99a4-2a044d11eb8f Timestamp: 2026-07-20 11:33:56Z - Correlation ID: bb689599-a684-4d8c-99a4-2a044d11eb8f - Trace ID: f536e1fb-c087-4ecd-a156-87a068cb2400
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)