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-02 11:18:44Z]: 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: 090119ff-bb1d-4eb6-8521-21f48f7e7200 Correlation ID: 1db01550-9424-45c1-871e-c9dfe8c945ed Timestamp: 2026-10-02 11:18:44Z - Correlation ID: 1db01550-9424-45c1-871e-c9dfe8c945ed - Trace ID: 090119ff-bb1d-4eb6-8521-21f48f7e7200
(node:3444) [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-02 11:18:44Z]: 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: 7ff789d2-623b-4cf4-8270-532639154e00 Correlation ID: c340f34a-a459-4cd6-baf4-1f8af886909f Timestamp: 2026-10-02 11:18:44Z - Correlation ID: c340f34a-a459-4cd6-baf4-1f8af886909f - Trace ID: 7ff789d2-623b-4cf4-8270-532639154e00
Error getting the secret: invalid_client: 7000222 - [2026-10-02 11:18:44Z]: 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: 03a91fa8-56e3-4dcb-afa1-d4860d170200 Correlation ID: 1803cfe4-fcc5-41c7-8cd2-0462a0116fd3 Timestamp: 2026-10-02 11:18:44Z - Correlation ID: 1803cfe4-fcc5-41c7-8cd2-0462a0116fd3 - Trace ID: 03a91fa8-56e3-4dcb-afa1-d4860d170200
Error getting the secret: invalid_client: 7000222 - [2026-10-02 11:18:44Z]: 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: 2a322011-de5c-4634-909b-f17906e94a00 Correlation ID: 244e7b51-191f-43d0-a7f3-5b2bdec5c394 Timestamp: 2026-10-02 11:18:44Z - Correlation ID: 244e7b51-191f-43d0-a7f3-5b2bdec5c394 - Trace ID: 2a322011-de5c-4634-909b-f17906e94a00
Error getting the secret: invalid_client: 7000222 - [2026-10-02 11:18:45Z]: 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: fcfc5179-9c32-431a-9b06-a2d9e1a44d00 Correlation ID: cc43a5f1-4c34-42f4-9020-bc28b344f176 Timestamp: 2026-10-02 11:18:45Z - Correlation ID: cc43a5f1-4c34-42f4-9020-bc28b344f176 - Trace ID: fcfc5179-9c32-431a-9b06-a2d9e1a44d00
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)