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-03 15:27:21Z]: 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: 15410c2a-f001-4264-a941-9c205f6f2200 Correlation ID: 1780f110-87f8-4cb8-85d4-41eaf9a1e65c Timestamp: 2026-07-03 15:27:21Z - Correlation ID: 1780f110-87f8-4cb8-85d4-41eaf9a1e65c - Trace ID: 15410c2a-f001-4264-a941-9c205f6f2200
(node:2268) [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-03 15:27:22Z]: 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: bc305832-d385-4637-87bf-202a7c5fac00 Correlation ID: f58261c9-fbe4-4468-9e5b-990d76997e9a Timestamp: 2026-07-03 15:27:22Z - Correlation ID: f58261c9-fbe4-4468-9e5b-990d76997e9a - Trace ID: bc305832-d385-4637-87bf-202a7c5fac00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 15:27:22Z]: 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: c0884e0a-5f42-4624-9e3d-b933531b3b00 Correlation ID: 0a77871d-e2fd-4d05-942e-8743056898d6 Timestamp: 2026-07-03 15:27:22Z - Correlation ID: 0a77871d-e2fd-4d05-942e-8743056898d6 - Trace ID: c0884e0a-5f42-4624-9e3d-b933531b3b00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 15:27:22Z]: 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: e1eb486f-a3e7-472f-88ab-d0d1c1ada200 Correlation ID: 4dfe4b41-07c1-418b-9878-1fb459e14b3e Timestamp: 2026-07-03 15:27:22Z - Correlation ID: 4dfe4b41-07c1-418b-9878-1fb459e14b3e - Trace ID: e1eb486f-a3e7-472f-88ab-d0d1c1ada200
Error getting the secret: invalid_client: 7000222 - [2026-07-03 15:27:23Z]: 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: cd286a1b-2655-42c2-bdec-535976a33c00 Correlation ID: a2e91b5e-843b-4dd1-87a8-ea23bc175b88 Timestamp: 2026-07-03 15:27:23Z - Correlation ID: a2e91b5e-843b-4dd1-87a8-ea23bc175b88 - Trace ID: cd286a1b-2655-42c2-bdec-535976a33c00
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)