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-23 10:53:01Z]: 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: e06310eb-ae42-4979-b296-963121ac1100 Correlation ID: ae9ef179-6109-4ad6-970c-4e4e00acbeb4 Timestamp: 2026-07-23 10:53:01Z - Correlation ID: ae9ef179-6109-4ad6-970c-4e4e00acbeb4 - Trace ID: e06310eb-ae42-4979-b296-963121ac1100
(node:4720) [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-23 10:53:02Z]: 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: 8aeddbe8-3787-41f3-a4ae-8b65936e4100 Correlation ID: 74801b1d-a65a-4204-bce7-317f76bff702 Timestamp: 2026-07-23 10:53:02Z - Correlation ID: 74801b1d-a65a-4204-bce7-317f76bff702 - Trace ID: 8aeddbe8-3787-41f3-a4ae-8b65936e4100
Error getting the secret: invalid_client: 7000222 - [2026-07-23 10:53:02Z]: 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: 76904c68-67c0-4c3b-93b5-340f11265100 Correlation ID: dfa01fe5-ae65-40f7-91ee-eac513264cdc Timestamp: 2026-07-23 10:53:02Z - Correlation ID: dfa01fe5-ae65-40f7-91ee-eac513264cdc - Trace ID: 76904c68-67c0-4c3b-93b5-340f11265100
Error getting the secret: invalid_client: 7000222 - [2026-07-23 10:53:02Z]: 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: a2ba8998-f402-4226-abc3-44f2ffb31c00 Correlation ID: 8e834f12-9831-46f4-9bba-50d775ef2a63 Timestamp: 2026-07-23 10:53:02Z - Correlation ID: 8e834f12-9831-46f4-9bba-50d775ef2a63 - Trace ID: a2ba8998-f402-4226-abc3-44f2ffb31c00
Error getting the secret: invalid_client: 7000222 - [2026-07-23 10:53:02Z]: 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: f383d4e7-9c52-4631-9464-2eec3d884700 Correlation ID: 821d1270-83fc-4106-8b3f-9212804d4d40 Timestamp: 2026-07-23 10:53:02Z - Correlation ID: 821d1270-83fc-4106-8b3f-9212804d4d40 - Trace ID: f383d4e7-9c52-4631-9464-2eec3d884700
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)