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-04-26 02:33:32Z]: 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: 52577e5a-c42c-46b9-8747-fdf855cf1a00 Correlation ID: 3ba46d44-c02c-452c-bcbd-66318c350e3d Timestamp: 2026-04-26 02:33:32Z - Correlation ID: 3ba46d44-c02c-452c-bcbd-66318c350e3d - Trace ID: 52577e5a-c42c-46b9-8747-fdf855cf1a00
(node:1120) [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-04-26 02:33:32Z]: 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: 482d3db1-a0f2-4473-a9eb-56d34daa1e00 Correlation ID: dfda4444-f8e1-4cd3-a54c-f067aafbda84 Timestamp: 2026-04-26 02:33:32Z - Correlation ID: dfda4444-f8e1-4cd3-a54c-f067aafbda84 - Trace ID: 482d3db1-a0f2-4473-a9eb-56d34daa1e00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 02:33:32Z]: 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: e8d6f7a4-2ede-40e3-bdee-4f10dbcc1c00 Correlation ID: f63a09aa-354b-4a9c-b7f7-8e2de12678a3 Timestamp: 2026-04-26 02:33:32Z - Correlation ID: f63a09aa-354b-4a9c-b7f7-8e2de12678a3 - Trace ID: e8d6f7a4-2ede-40e3-bdee-4f10dbcc1c00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 02:33:32Z]: 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: e8d6f7a4-2ede-40e3-bdee-4f10e0cc1c00 Correlation ID: 85ffe42d-849f-43f7-85f5-52537366229e Timestamp: 2026-04-26 02:33:32Z - Correlation ID: 85ffe42d-849f-43f7-85f5-52537366229e - Trace ID: e8d6f7a4-2ede-40e3-bdee-4f10e0cc1c00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 02:33:33Z]: 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: 8fa83111-2196-4951-9fb8-7b9bf9ad4500 Correlation ID: 39bebbe4-df95-433b-b7f9-198061341bd8 Timestamp: 2026-04-26 02:33:33Z - Correlation ID: 39bebbe4-df95-433b-b7f9-198061341bd8 - Trace ID: 8fa83111-2196-4951-9fb8-7b9bf9ad4500
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)