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-24 20:39: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: cdee6760-bf25-488e-a168-71b8c1ba0200 Correlation ID: 858a9534-e5e6-4c7b-9a1d-b513e2b69428 Timestamp: 2026-07-24 20:39:40Z - Correlation ID: 858a9534-e5e6-4c7b-9a1d-b513e2b69428 - Trace ID: cdee6760-bf25-488e-a168-71b8c1ba0200
(node:4616) [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-24 20:39: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: 34a8920e-1793-44db-bf93-26d8f4491b00 Correlation ID: f2e802f1-9b73-4324-9f76-2fa17b32c5f1 Timestamp: 2026-07-24 20:39:40Z - Correlation ID: f2e802f1-9b73-4324-9f76-2fa17b32c5f1 - Trace ID: 34a8920e-1793-44db-bf93-26d8f4491b00
Error getting the secret: invalid_client: 7000222 - [2026-07-24 20:39: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: f8270540-bf24-4e84-9bd5-ed70269e3800 Correlation ID: b2f47821-aded-4f06-81ef-b8b74b577a53 Timestamp: 2026-07-24 20:39:40Z - Correlation ID: b2f47821-aded-4f06-81ef-b8b74b577a53 - Trace ID: f8270540-bf24-4e84-9bd5-ed70269e3800
Error getting the secret: invalid_client: 7000222 - [2026-07-24 20:39: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: 2660cde2-bea0-458f-ae82-8f5b4cd41400 Correlation ID: b0d397d0-5bc6-488d-960c-f7abd54132f4 Timestamp: 2026-07-24 20:39:40Z - Correlation ID: b0d397d0-5bc6-488d-960c-f7abd54132f4 - Trace ID: 2660cde2-bea0-458f-ae82-8f5b4cd41400
Error getting the secret: invalid_client: 7000222 - [2026-07-24 20:39: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: 8bacab62-5d98-488d-a241-af1404066500 Correlation ID: 4379c18e-e989-43d0-ade5-e7c8a6d00c44 Timestamp: 2026-07-24 20:39:40Z - Correlation ID: 4379c18e-e989-43d0-ade5-e7c8a6d00c44 - Trace ID: 8bacab62-5d98-488d-a241-af1404066500
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)