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-17 05:23:48Z]: 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: e6e62827-9310-4d9f-b876-67341ff74a00 Correlation ID: 0bdb30a1-4734-4c77-a1b8-401740b8b4a4 Timestamp: 2026-07-17 05:23:48Z - Correlation ID: 0bdb30a1-4734-4c77-a1b8-401740b8b4a4 - Trace ID: e6e62827-9310-4d9f-b876-67341ff74a00
(node:5992) [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-17 05:23:48Z]: 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: 83a638c3-790b-4948-8cf4-4ddd11b24400 Correlation ID: 4e24725a-6988-411f-8329-c0d148d8efe2 Timestamp: 2026-07-17 05:23:48Z - Correlation ID: 4e24725a-6988-411f-8329-c0d148d8efe2 - Trace ID: 83a638c3-790b-4948-8cf4-4ddd11b24400
Error getting the secret: invalid_client: 7000222 - [2026-07-17 05:23:48Z]: 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: 820db791-5730-44cb-a4de-8811815f4500 Correlation ID: 5ac19658-ed51-44db-8386-4b874c106d60 Timestamp: 2026-07-17 05:23:48Z - Correlation ID: 5ac19658-ed51-44db-8386-4b874c106d60 - Trace ID: 820db791-5730-44cb-a4de-8811815f4500
Error getting the secret: invalid_client: 7000222 - [2026-07-17 05:23:49Z]: 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: aac13ba7-f083-480d-bab7-c00eda933a00 Correlation ID: 7a97e703-f8f8-4dca-85c7-99792827534b Timestamp: 2026-07-17 05:23:49Z - Correlation ID: 7a97e703-f8f8-4dca-85c7-99792827534b - Trace ID: aac13ba7-f083-480d-bab7-c00eda933a00
Error getting the secret: invalid_client: 7000222 - [2026-07-17 05:23:49Z]: 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: 48e067c1-3ed8-4136-a653-445a784c2200 Correlation ID: c29fbe4d-2e3b-4d4e-8230-fb06ed7a4009 Timestamp: 2026-07-17 05:23:49Z - Correlation ID: c29fbe4d-2e3b-4d4e-8230-fb06ed7a4009 - Trace ID: 48e067c1-3ed8-4136-a653-445a784c2200
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)