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-27 10:06:40Z]: 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: 9d374344-62b0-46e6-9648-883ccfff0a00 Correlation ID: 5b3a7a34-9e7f-4c10-a998-a7a5fc7a8da4 Timestamp: 2026-07-27 10:06:40Z - Correlation ID: 5b3a7a34-9e7f-4c10-a998-a7a5fc7a8da4 - Trace ID: 9d374344-62b0-46e6-9648-883ccfff0a00
(node:4888) [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-27 10:06:40Z]: 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: acc15ae3-46e3-48d9-ac28-ee0a5f8f0a00 Correlation ID: 79ffe134-da2b-43c5-904a-cd5d11bd7d05 Timestamp: 2026-07-27 10:06:40Z - Correlation ID: 79ffe134-da2b-43c5-904a-cd5d11bd7d05 - Trace ID: acc15ae3-46e3-48d9-ac28-ee0a5f8f0a00
Error getting the secret: invalid_client: 7000222 - [2026-07-27 10:06:40Z]: 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: 82d5b319-8de5-447d-88d8-a738f03a0800 Correlation ID: 5db4c9e5-cbbd-4051-a31b-326188709f2d Timestamp: 2026-07-27 10:06:40Z - Correlation ID: 5db4c9e5-cbbd-4051-a31b-326188709f2d - Trace ID: 82d5b319-8de5-447d-88d8-a738f03a0800
Error getting the secret: invalid_client: 7000222 - [2026-07-27 10:06:40Z]: 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: acc15ae3-46e3-48d9-ac28-ee0a678f0a00 Correlation ID: f85de3c8-be45-469a-ba83-53f6d935f739 Timestamp: 2026-07-27 10:06:40Z - Correlation ID: f85de3c8-be45-469a-ba83-53f6d935f739 - Trace ID: acc15ae3-46e3-48d9-ac28-ee0a678f0a00
Error getting the secret: invalid_client: 7000222 - [2026-07-27 10:06:41Z]: 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: 5ec0a0b7-7675-4388-a8c0-6321c4b60800 Correlation ID: 911a85b7-8053-4b8d-8075-3c23d0ef7e34 Timestamp: 2026-07-27 10:06:41Z - Correlation ID: 911a85b7-8053-4b8d-8075-3c23d0ef7e34 - Trace ID: 5ec0a0b7-7675-4388-a8c0-6321c4b60800
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)