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-12 04:29:57Z]: 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: 4fe94bc5-877b-4f8d-8902-4cc1a8a40000 Correlation ID: a22c9135-96c7-4108-b188-a80ac841075b Timestamp: 2026-07-12 04:29:57Z - Correlation ID: a22c9135-96c7-4108-b188-a80ac841075b - Trace ID: 4fe94bc5-877b-4f8d-8902-4cc1a8a40000
(node:4840) [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-12 04:29:57Z]: 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: 9b2eab04-7e78-459b-8940-3204499b0800 Correlation ID: 821ab251-3e0f-4947-80e0-ab97ffbe4648 Timestamp: 2026-07-12 04:29:57Z - Correlation ID: 821ab251-3e0f-4947-80e0-ab97ffbe4648 - Trace ID: 9b2eab04-7e78-459b-8940-3204499b0800
Error getting the secret: invalid_client: 7000222 - [2026-07-12 04:29:57Z]: 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: 283c5207-13d8-420e-ab98-932ab2d93a00 Correlation ID: 7dd24045-469d-4c48-857b-9df57d045378 Timestamp: 2026-07-12 04:29:57Z - Correlation ID: 7dd24045-469d-4c48-857b-9df57d045378 - Trace ID: 283c5207-13d8-420e-ab98-932ab2d93a00
Error getting the secret: invalid_client: 7000222 - [2026-07-12 04:29:57Z]: 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: 9b2eab04-7e78-459b-8940-32044d9b0800 Correlation ID: d7a3661e-47f0-4ae6-8d8e-361a73ebbded Timestamp: 2026-07-12 04:29:57Z - Correlation ID: d7a3661e-47f0-4ae6-8d8e-361a73ebbded - Trace ID: 9b2eab04-7e78-459b-8940-32044d9b0800
Error getting the secret: invalid_client: 7000222 - [2026-07-12 04:29:57Z]: 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: bdf0c2b2-835a-4b8e-b7e4-48ccabf20100 Correlation ID: 359622d4-d287-4d04-9865-a10aeea4b25a Timestamp: 2026-07-12 04:29:57Z - Correlation ID: 359622d4-d287-4d04-9865-a10aeea4b25a - Trace ID: bdf0c2b2-835a-4b8e-b7e4-48ccabf20100
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)