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-06-18 09:44:59Z]: 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: dc807e56-e090-4bd3-b844-5923f9340100 Correlation ID: 4f448976-4f39-4a87-8346-ea8b1a0ca765 Timestamp: 2026-06-18 09:44:59Z - Correlation ID: 4f448976-4f39-4a87-8346-ea8b1a0ca765 - Trace ID: dc807e56-e090-4bd3-b844-5923f9340100
(node:3180) [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-06-18 09:44:59Z]: 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: 272639bb-5920-4888-8676-5e9c36440300 Correlation ID: 2bf91eaa-6fb8-4fff-b243-e8ab54830449 Timestamp: 2026-06-18 09:44:59Z - Correlation ID: 2bf91eaa-6fb8-4fff-b243-e8ab54830449 - Trace ID: 272639bb-5920-4888-8676-5e9c36440300
Error getting the secret: invalid_client: 7000222 - [2026-06-18 09:44:59Z]: 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: dc807e56-e090-4bd3-b844-592304350100 Correlation ID: 084827d9-0ad7-4d5e-89f2-d35a3afd560f Timestamp: 2026-06-18 09:44:59Z - Correlation ID: 084827d9-0ad7-4d5e-89f2-d35a3afd560f - Trace ID: dc807e56-e090-4bd3-b844-592304350100
Error getting the secret: invalid_client: 7000222 - [2026-06-18 09:45:00Z]: 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: 246a1b80-c80e-4f9f-aa03-664b427f2e00 Correlation ID: c5f23f13-c1b9-450a-9354-cbfb7b5786c8 Timestamp: 2026-06-18 09:45:00Z - Correlation ID: c5f23f13-c1b9-450a-9354-cbfb7b5786c8 - Trace ID: 246a1b80-c80e-4f9f-aa03-664b427f2e00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 09:45:00Z]: 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: c26b7291-fec5-4f16-93bd-2a61c3de8300 Correlation ID: 8bf4f6dc-c4b0-4adb-8168-893d71b185f0 Timestamp: 2026-06-18 09:45:00Z - Correlation ID: 8bf4f6dc-c4b0-4adb-8168-893d71b185f0 - Trace ID: c26b7291-fec5-4f16-93bd-2a61c3de8300
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)