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-08 03:50: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: 948e516f-dbc1-4aa7-adfe-8ef4d55a5400 Correlation ID: 23a5159b-ecde-48d3-8107-c659b0421850 Timestamp: 2026-07-08 03:50:22Z - Correlation ID: 23a5159b-ecde-48d3-8107-c659b0421850 - Trace ID: 948e516f-dbc1-4aa7-adfe-8ef4d55a5400
(node:2600) [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-08 03:50: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: 578b6297-1c6f-4e1c-b78c-43b90ec94400 Correlation ID: 165cacd5-366a-4e24-907f-d8e22c02b7fa Timestamp: 2026-07-08 03:50:22Z - Correlation ID: 165cacd5-366a-4e24-907f-d8e22c02b7fa - Trace ID: 578b6297-1c6f-4e1c-b78c-43b90ec94400
Error getting the secret: invalid_client: 7000222 - [2026-07-08 03:50: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: e1141a9b-95df-4f41-b028-af06b56f5600 Correlation ID: adf68982-e7c8-48da-a778-a3566e9052c4 Timestamp: 2026-07-08 03:50:23Z - Correlation ID: adf68982-e7c8-48da-a778-a3566e9052c4 - Trace ID: e1141a9b-95df-4f41-b028-af06b56f5600
Error getting the secret: invalid_client: 7000222 - [2026-07-08 03:50: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: a1a684a7-c00b-4a9f-8de0-17fbccf86200 Correlation ID: 396da180-695c-49ea-80b3-903340c3fda3 Timestamp: 2026-07-08 03:50:23Z - Correlation ID: 396da180-695c-49ea-80b3-903340c3fda3 - Trace ID: a1a684a7-c00b-4a9f-8de0-17fbccf86200
Error getting the secret: invalid_client: 7000222 - [2026-07-08 03:50: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: a1a684a7-c00b-4a9f-8de0-17fbd5f86200 Correlation ID: 383307f2-57fc-4f53-8baa-90d7087bf9ae Timestamp: 2026-07-08 03:50:23Z - Correlation ID: 383307f2-57fc-4f53-8baa-90d7087bf9ae - Trace ID: a1a684a7-c00b-4a9f-8de0-17fbd5f86200
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)