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-02 09:00:25Z]: 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: 1dec2447-c1d6-40bb-8ad1-8d6eb5d40000 Correlation ID: 4399f3d5-ffb2-402f-bb4d-6537520f3103 Timestamp: 2026-07-02 09:00:25Z - Correlation ID: 4399f3d5-ffb2-402f-bb4d-6537520f3103 - Trace ID: 1dec2447-c1d6-40bb-8ad1-8d6eb5d40000
(node:3456) [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-02 09:00:26Z]: 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: 4c5cca0f-d5ee-49e5-97be-6f61f1fd0000 Correlation ID: 6126da14-c097-478b-a473-03f948dd07d5 Timestamp: 2026-07-02 09:00:26Z - Correlation ID: 6126da14-c097-478b-a473-03f948dd07d5 - Trace ID: 4c5cca0f-d5ee-49e5-97be-6f61f1fd0000
Error getting the secret: invalid_client: 7000222 - [2026-07-02 09:00:26Z]: 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: ff43a5de-72d6-4804-aff1-4fbcc8220100 Correlation ID: 92f5e913-7691-46dd-a507-dd21af904e6e Timestamp: 2026-07-02 09:00:26Z - Correlation ID: 92f5e913-7691-46dd-a507-dd21af904e6e - Trace ID: ff43a5de-72d6-4804-aff1-4fbcc8220100
Error getting the secret: invalid_client: 7000222 - [2026-07-02 09:00:26Z]: 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: 30821b0b-0aa4-4a66-a136-96a2a54a0d00 Correlation ID: bd9c4030-b2b5-4343-b965-4a7cb2a661a6 Timestamp: 2026-07-02 09:00:26Z - Correlation ID: bd9c4030-b2b5-4343-b965-4a7cb2a661a6 - Trace ID: 30821b0b-0aa4-4a66-a136-96a2a54a0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 09:00:26Z]: 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: 30821b0b-0aa4-4a66-a136-96a2aa4a0d00 Correlation ID: 4b6a5b78-1c07-4601-82da-5f9748125682 Timestamp: 2026-07-02 09:00:26Z - Correlation ID: 4b6a5b78-1c07-4601-82da-5f9748125682 - Trace ID: 30821b0b-0aa4-4a66-a136-96a2aa4a0d00
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)