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-06 13:31:21Z]: 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: 1853a4b7-da57-4eda-9cc4-acfd6ffc2c00 Correlation ID: 7a757260-66dc-4dd7-8d4e-c06964a0e6f4 Timestamp: 2026-07-06 13:31:21Z - Correlation ID: 7a757260-66dc-4dd7-8d4e-c06964a0e6f4 - Trace ID: 1853a4b7-da57-4eda-9cc4-acfd6ffc2c00
(node:4416) [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-06 13:31: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: b4145518-12ae-4d39-bd19-ae13dd633200 Correlation ID: 6988bdfa-1976-470e-a775-5b0c68f6b464 Timestamp: 2026-07-06 13:31:22Z - Correlation ID: 6988bdfa-1976-470e-a775-5b0c68f6b464 - Trace ID: b4145518-12ae-4d39-bd19-ae13dd633200
Error getting the secret: invalid_client: 7000222 - [2026-07-06 13:31: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: b4145518-12ae-4d39-bd19-ae13e6633200 Correlation ID: 3940a1cb-162c-4574-af56-3d5dd093095a Timestamp: 2026-07-06 13:31:22Z - Correlation ID: 3940a1cb-162c-4574-af56-3d5dd093095a - Trace ID: b4145518-12ae-4d39-bd19-ae13e6633200
Error getting the secret: invalid_client: 7000222 - [2026-07-06 13:31: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: 9a7abe32-29f3-4cce-934d-71d0a92f1f00 Correlation ID: 8807bb81-4c56-41d2-93ce-4fd2d4352572 Timestamp: 2026-07-06 13:31:22Z - Correlation ID: 8807bb81-4c56-41d2-93ce-4fd2d4352572 - Trace ID: 9a7abe32-29f3-4cce-934d-71d0a92f1f00
Error getting the secret: invalid_client: 7000222 - [2026-07-06 13:31: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: f35719b4-4c86-4281-87fe-6df572e32d00 Correlation ID: 093cb84b-2218-46fa-8719-81d0c9de7866 Timestamp: 2026-07-06 13:31:23Z - Correlation ID: 093cb84b-2218-46fa-8719-81d0c9de7866 - Trace ID: f35719b4-4c86-4281-87fe-6df572e32d00
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)