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 04:15:10Z]: 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: 0fa29613-2924-4f03-b5a4-c39aa8fe0f00 Correlation ID: f11f5335-4b4a-41f1-8321-99aba8492114 Timestamp: 2026-10-06 04:15:10Z - Correlation ID: f11f5335-4b4a-41f1-8321-99aba8492114 - Trace ID: 0fa29613-2924-4f03-b5a4-c39aa8fe0f00
(node:2716) [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 04:15:10Z]: 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: 85a0986b-d2da-4c25-9431-85feec800701 Correlation ID: a1a9a08b-5439-4738-a2a3-c01151c807ac Timestamp: 2026-10-06 04:15:10Z - Correlation ID: a1a9a08b-5439-4738-a2a3-c01151c807ac - Trace ID: 85a0986b-d2da-4c25-9431-85feec800701
Error getting the secret: invalid_client: 7000222 - [2026-10-06 04:15:11Z]: 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: c3e4b7e5-168f-4853-9579-02bc5027f400 Correlation ID: 98d72d78-6d6e-4303-8553-98e45e3d5484 Timestamp: 2026-10-06 04:15:11Z - Correlation ID: 98d72d78-6d6e-4303-8553-98e45e3d5484 - Trace ID: c3e4b7e5-168f-4853-9579-02bc5027f400
Error getting the secret: invalid_client: 7000222 - [2026-10-06 04:15:11Z]: 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: 8a0ccc1c-307b-4211-a5b4-27b675f11100 Correlation ID: f3e6a73e-b4bd-453c-a187-252a7dd863a4 Timestamp: 2026-10-06 04:15:11Z - Correlation ID: f3e6a73e-b4bd-453c-a187-252a7dd863a4 - Trace ID: 8a0ccc1c-307b-4211-a5b4-27b675f11100
Error getting the secret: invalid_client: 7000222 - [2026-10-06 04:15:11Z]: 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: e612fafb-3983-4e14-96c9-c445fa60cc00 Correlation ID: 6754b8e2-6cb6-477e-bf8b-54b6a12c6a19 Timestamp: 2026-10-06 04:15:11Z - Correlation ID: 6754b8e2-6cb6-477e-bf8b-54b6a12c6a19 - Trace ID: e612fafb-3983-4e14-96c9-c445fa60cc00
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)