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-15 09:22:04Z]: 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: fb9d0df2-ffbe-462b-99d2-6040c6ab0b00 Correlation ID: af975857-1950-41d5-b604-02d762f1a572 Timestamp: 2026-07-15 09:22:04Z - Correlation ID: af975857-1950-41d5-b604-02d762f1a572 - Trace ID: fb9d0df2-ffbe-462b-99d2-6040c6ab0b00
(node:1940) [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-15 09:22:04Z]: 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: fb9d0df2-ffbe-462b-99d2-6040d9ab0b00 Correlation ID: 2849ad99-4714-4284-af79-8d6857878a34 Timestamp: 2026-07-15 09:22:04Z - Correlation ID: 2849ad99-4714-4284-af79-8d6857878a34 - Trace ID: fb9d0df2-ffbe-462b-99d2-6040d9ab0b00
Error getting the secret: invalid_client: 7000222 - [2026-07-15 09:22:04Z]: 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: 83febecf-c6e6-4cf3-b992-0b8022d70d00 Correlation ID: 1788e53c-ea87-4880-842e-afc9d4661a9f Timestamp: 2026-07-15 09:22:04Z - Correlation ID: 1788e53c-ea87-4880-842e-afc9d4661a9f - Trace ID: 83febecf-c6e6-4cf3-b992-0b8022d70d00
Error getting the secret: invalid_client: 7000222 - [2026-07-15 09:22:05Z]: 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: fd1b1834-0e73-46c4-8494-502090ea2600 Correlation ID: d6e4ec50-f2c8-4207-879a-e7bc9c49030a Timestamp: 2026-07-15 09:22:05Z - Correlation ID: d6e4ec50-f2c8-4207-879a-e7bc9c49030a - Trace ID: fd1b1834-0e73-46c4-8494-502090ea2600
Error getting the secret: invalid_client: 7000222 - [2026-07-15 09:22:05Z]: 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: fb9d0df2-ffbe-462b-99d2-6040fbab0b00 Correlation ID: 83bd79d2-bc27-4c7a-8bce-9b613485f7d5 Timestamp: 2026-07-15 09:22:05Z - Correlation ID: 83bd79d2-bc27-4c7a-8bce-9b613485f7d5 - Trace ID: fb9d0df2-ffbe-462b-99d2-6040fbab0b00
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)