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-10-06 22:52:06Z]: 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: 32f0643c-6ad7-4176-aebd-544a29520a00 Correlation ID: 8b48ea0b-4bea-41e1-a511-d5e5b5c5aa25 Timestamp: 2026-10-06 22:52:06Z - Correlation ID: 8b48ea0b-4bea-41e1-a511-d5e5b5c5aa25 - Trace ID: 32f0643c-6ad7-4176-aebd-544a29520a00
(node:5472) [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-10-06 22:52:06Z]: 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: d77ffb64-518e-4dac-b232-dc7c6ec90500 Correlation ID: bbed62d8-7e8c-45ce-aa76-ad6136d0d719 Timestamp: 2026-10-06 22:52:06Z - Correlation ID: bbed62d8-7e8c-45ce-aa76-ad6136d0d719 - Trace ID: d77ffb64-518e-4dac-b232-dc7c6ec90500
Error getting the secret: invalid_client: 7000222 - [2026-10-06 22:52: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: 8f23f771-8ebd-4165-a144-cbe18fbc0a00 Correlation ID: a5dedcc3-da8c-4e71-86f8-a945fec27e1f Timestamp: 2026-10-06 22:52:07Z - Correlation ID: a5dedcc3-da8c-4e71-86f8-a945fec27e1f - Trace ID: 8f23f771-8ebd-4165-a144-cbe18fbc0a00
Error getting the secret: invalid_client: 7000222 - [2026-10-06 22:52: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: aae2fc6d-f94a-446f-bcf2-74e1b7260900 Correlation ID: 5b84f92a-e2f8-4df0-b3ae-7d9d147343c6 Timestamp: 2026-10-06 22:52:07Z - Correlation ID: 5b84f92a-e2f8-4df0-b3ae-7d9d147343c6 - Trace ID: aae2fc6d-f94a-446f-bcf2-74e1b7260900
Error getting the secret: invalid_client: 7000222 - [2026-10-06 22:52: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: 2c8a5a9b-0ad3-40f3-8293-8b6e30f70b00 Correlation ID: 3256fcc7-b10d-450f-987b-de9506ab6f53 Timestamp: 2026-10-06 22:52:07Z - Correlation ID: 3256fcc7-b10d-450f-987b-de9506ab6f53 - Trace ID: 2c8a5a9b-0ad3-40f3-8293-8b6e30f70b00
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)