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-10 15:33:58Z]: 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: 0a808a00-26c4-4862-a20c-28c48bffa400 Correlation ID: b491a69c-4ffd-4aaa-a73b-6fc260798bc1 Timestamp: 2026-07-10 15:33:58Z - Correlation ID: b491a69c-4ffd-4aaa-a73b-6fc260798bc1 - Trace ID: 0a808a00-26c4-4862-a20c-28c48bffa400
(node:1912) [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-10 15:33:58Z]: 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: 1a7810f6-9b68-4a81-b8d8-02081e93b000 Correlation ID: 6554c1f8-1e47-41d0-bd34-d45cd6f3beb8 Timestamp: 2026-07-10 15:33:58Z - Correlation ID: 6554c1f8-1e47-41d0-bd34-d45cd6f3beb8 - Trace ID: 1a7810f6-9b68-4a81-b8d8-02081e93b000
Error getting the secret: invalid_client: 7000222 - [2026-07-10 15:33: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: 748573c6-c4d4-43b8-a7e2-bcb9c25f3200 Correlation ID: dc08a7a5-6ef5-4b6e-b72d-b481b5bbb2c6 Timestamp: 2026-07-10 15:33:59Z - Correlation ID: dc08a7a5-6ef5-4b6e-b72d-b481b5bbb2c6 - Trace ID: 748573c6-c4d4-43b8-a7e2-bcb9c25f3200
Error getting the secret: invalid_client: 7000222 - [2026-07-10 15:33: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: ce3c0adf-e331-47a6-b77b-b32b58202e00 Correlation ID: 94185321-e39b-41c9-b356-029ca78da90f Timestamp: 2026-07-10 15:33:59Z - Correlation ID: 94185321-e39b-41c9-b356-029ca78da90f - Trace ID: ce3c0adf-e331-47a6-b77b-b32b58202e00
Error getting the secret: invalid_client: 7000222 - [2026-07-10 15:33: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: b2c17f0d-835f-4df4-ab48-d2a6c5a39f00 Correlation ID: 80594609-8693-4568-bf41-71241f6331ba Timestamp: 2026-07-10 15:33:59Z - Correlation ID: 80594609-8693-4568-bf41-71241f6331ba - Trace ID: b2c17f0d-835f-4df4-ab48-d2a6c5a39f00
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)