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-16 05:34:07Z]: 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: 4ce39fa2-6934-4b5b-a693-492383d82600 Correlation ID: e2352056-5406-43f4-9945-c7e52204fa95 Timestamp: 2026-07-16 05:34:07Z - Correlation ID: e2352056-5406-43f4-9945-c7e52204fa95 - Trace ID: 4ce39fa2-6934-4b5b-a693-492383d82600
(node:2340) [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-16 05:34:07Z]: 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: c2791e57-919e-4bd7-9e86-e0348fbd2600 Correlation ID: e3a44b46-fd2f-43d2-b87c-7ba35702a0ca Timestamp: 2026-07-16 05:34:07Z - Correlation ID: e3a44b46-fd2f-43d2-b87c-7ba35702a0ca - Trace ID: c2791e57-919e-4bd7-9e86-e0348fbd2600
Error getting the secret: invalid_client: 7000222 - [2026-07-16 05:34:07Z]: 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: 61a074c1-6d77-48d9-947d-4b44614d2f00 Correlation ID: ca1108b2-18ca-4655-a5fb-0bf10b8bdab5 Timestamp: 2026-07-16 05:34:07Z - Correlation ID: ca1108b2-18ca-4655-a5fb-0bf10b8bdab5 - Trace ID: 61a074c1-6d77-48d9-947d-4b44614d2f00
Error getting the secret: invalid_client: 7000222 - [2026-07-16 05:34:08Z]: 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: c2791e57-919e-4bd7-9e86-e03494bd2600 Correlation ID: 1f351876-7163-4b6b-a9a6-d5043fd37eb4 Timestamp: 2026-07-16 05:34:08Z - Correlation ID: 1f351876-7163-4b6b-a9a6-d5043fd37eb4 - Trace ID: c2791e57-919e-4bd7-9e86-e03494bd2600
Error getting the secret: invalid_client: 7000222 - [2026-07-16 05:34:08Z]: 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: a851bdbc-33a0-4cf3-8e14-ea62d7890500 Correlation ID: b699f8c6-de0a-4fec-8d30-f5368f195bb0 Timestamp: 2026-07-16 05:34:08Z - Correlation ID: b699f8c6-de0a-4fec-8d30-f5368f195bb0 - Trace ID: a851bdbc-33a0-4cf3-8e14-ea62d7890500
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)