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-01 20:40:21Z]: 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: 5e01bc2e-a5e9-4a8f-aff5-190524927f00 Correlation ID: 32f8cdb9-1dee-406b-aa19-98bee21358f4 Timestamp: 2026-07-01 20:40:21Z - Correlation ID: 32f8cdb9-1dee-406b-aa19-98bee21358f4 - Trace ID: 5e01bc2e-a5e9-4a8f-aff5-190524927f00
(node:4992) [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-01 20:40:22Z]: 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: 9c0f99ae-47e8-4d33-947c-8ce0a8b17b00 Correlation ID: 68d56f4c-08f8-4fdc-a2cc-b255615e2224 Timestamp: 2026-07-01 20:40:22Z - Correlation ID: 68d56f4c-08f8-4fdc-a2cc-b255615e2224 - Trace ID: 9c0f99ae-47e8-4d33-947c-8ce0a8b17b00
Error getting the secret: invalid_client: 7000222 - [2026-07-01 20:40:22Z]: 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: 1599251a-60ea-491e-92c7-97101db22500 Correlation ID: efc6a90a-5a08-4fe2-991f-3ed8d768871a Timestamp: 2026-07-01 20:40:22Z - Correlation ID: efc6a90a-5a08-4fe2-991f-3ed8d768871a - Trace ID: 1599251a-60ea-491e-92c7-97101db22500
Error getting the secret: invalid_client: 7000222 - [2026-07-01 20:40:22Z]: 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: 1599251a-60ea-491e-92c7-971022b22500 Correlation ID: 78f0d465-cb7b-4bfb-8842-7e1a696e3bce Timestamp: 2026-07-01 20:40:22Z - Correlation ID: 78f0d465-cb7b-4bfb-8842-7e1a696e3bce - Trace ID: 1599251a-60ea-491e-92c7-971022b22500
Error getting the secret: invalid_client: 7000222 - [2026-07-01 20:40:23Z]: 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: 815e5ac8-f447-432e-ac94-579d0a6e0f00 Correlation ID: 9898f17c-e613-4cb8-bba7-3a621d500e87 Timestamp: 2026-07-01 20:40:23Z - Correlation ID: 9898f17c-e613-4cb8-bba7-3a621d500e87 - Trace ID: 815e5ac8-f447-432e-ac94-579d0a6e0f00
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)