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-16 07:28:49Z]: 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: 269aba99-beb9-4ae4-942b-bfc54c0d0400 Correlation ID: 34314c5e-a056-414a-8e30-7e1153ac6dfd Timestamp: 2026-07-16 07:28:49Z - Correlation ID: 34314c5e-a056-414a-8e30-7e1153ac6dfd - Trace ID: 269aba99-beb9-4ae4-942b-bfc54c0d0400
(node:3732) [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-16 07:28:50Z]: 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: 2ae563ad-52df-49ee-a282-e83d278e2900 Correlation ID: 93a97097-465b-4fa4-b09e-d7ced75f2ed2 Timestamp: 2026-07-16 07:28:50Z - Correlation ID: 93a97097-465b-4fa4-b09e-d7ced75f2ed2 - Trace ID: 2ae563ad-52df-49ee-a282-e83d278e2900
Error getting the secret: invalid_client: 7000222 - [2026-07-16 07:28:50Z]: 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: 821c8f7d-bac4-4220-9e33-aacc38032700 Correlation ID: d4e742a7-533a-4cb7-a4ce-e9f77e130101 Timestamp: 2026-07-16 07:28:50Z - Correlation ID: d4e742a7-533a-4cb7-a4ce-e9f77e130101 - Trace ID: 821c8f7d-bac4-4220-9e33-aacc38032700
Error getting the secret: invalid_client: 7000222 - [2026-07-16 07:28:50Z]: 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: 39f7a95b-d145-4196-9107-d1fa39370000 Correlation ID: c1a6c8c5-46ea-4fce-b8c5-7ae0dd654d9b Timestamp: 2026-07-16 07:28:50Z - Correlation ID: c1a6c8c5-46ea-4fce-b8c5-7ae0dd654d9b - Trace ID: 39f7a95b-d145-4196-9107-d1fa39370000
Error getting the secret: invalid_client: 7000222 - [2026-07-16 07:28:51Z]: 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: 821c8f7d-bac4-4220-9e33-aacc43032700 Correlation ID: 87876d56-a5c5-48a3-a30f-05816d592192 Timestamp: 2026-07-16 07:28:51Z - Correlation ID: 87876d56-a5c5-48a3-a30f-05816d592192 - Trace ID: 821c8f7d-bac4-4220-9e33-aacc43032700
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)