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-03 05:42:59Z]: 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: 5cadef96-3e42-4285-922a-40a256c7ae00 Correlation ID: cdeb233b-7bac-4e2e-a190-548e5f056b05 Timestamp: 2026-07-03 05:42:59Z - Correlation ID: cdeb233b-7bac-4e2e-a190-548e5f056b05 - Trace ID: 5cadef96-3e42-4285-922a-40a256c7ae00
(node:2788) [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-03 05:42:59Z]: 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: 534ce29d-ed64-43cf-a209-69e6e8242600 Correlation ID: b27c3222-63dd-4bb6-86d1-a3389b93117e Timestamp: 2026-07-03 05:42:59Z - Correlation ID: b27c3222-63dd-4bb6-86d1-a3389b93117e - Trace ID: 534ce29d-ed64-43cf-a209-69e6e8242600
Error getting the secret: invalid_client: 7000222 - [2026-07-03 05:42:59Z]: 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: 5cadef96-3e42-4285-922a-40a25cc7ae00 Correlation ID: 9efd4906-2312-46b7-bcb9-c2bf470c5fcf Timestamp: 2026-07-03 05:42:59Z - Correlation ID: 9efd4906-2312-46b7-bcb9-c2bf470c5fcf - Trace ID: 5cadef96-3e42-4285-922a-40a25cc7ae00
Error getting the secret: invalid_client: 7000222 - [2026-07-03 05:42:59Z]: 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: 534ce29d-ed64-43cf-a209-69e6eb242600 Correlation ID: 06cf9f1b-c8c0-478c-9c7a-aeca064f52ca Timestamp: 2026-07-03 05:42:59Z - Correlation ID: 06cf9f1b-c8c0-478c-9c7a-aeca064f52ca - Trace ID: 534ce29d-ed64-43cf-a209-69e6eb242600
Error getting the secret: invalid_client: 7000222 - [2026-07-03 05:42:59Z]: 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: ead07f6c-0888-4bdc-ae5d-f8ea46bd7f00 Correlation ID: f8f5f937-be98-451c-aac5-6b003f8a0576 Timestamp: 2026-07-03 05:42:59Z - Correlation ID: f8f5f937-be98-451c-aac5-6b003f8a0576 - Trace ID: ead07f6c-0888-4bdc-ae5d-f8ea46bd7f00
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)