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-25 20:27:51Z]: 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: d1d45dbb-6b11-4b70-bfa4-46289f3e0d00 Correlation ID: 343d9354-a4b6-4b5c-a9cb-ddef0f33c4d8 Timestamp: 2026-07-25 20:27:51Z - Correlation ID: 343d9354-a4b6-4b5c-a9cb-ddef0f33c4d8 - Trace ID: d1d45dbb-6b11-4b70-bfa4-46289f3e0d00
(node:3256) [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-25 20:27:51Z]: 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: 97bc0bba-5fe7-4619-9f07-7143e05f0d00 Correlation ID: 8f98aebe-5eee-4cab-aadb-a68bdb8b9546 Timestamp: 2026-07-25 20:27:51Z - Correlation ID: 8f98aebe-5eee-4cab-aadb-a68bdb8b9546 - Trace ID: 97bc0bba-5fe7-4619-9f07-7143e05f0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-25 20:27:51Z]: 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: 0e7084e7-c27d-4d02-bd2b-6a05e2f50c00 Correlation ID: ce859c2e-1a42-403d-9a7d-ffc8fd7171d2 Timestamp: 2026-07-25 20:27:51Z - Correlation ID: ce859c2e-1a42-403d-9a7d-ffc8fd7171d2 - Trace ID: 0e7084e7-c27d-4d02-bd2b-6a05e2f50c00
Error getting the secret: invalid_client: 7000222 - [2026-07-25 20:27:52Z]: 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: 453686c3-5c2f-4670-85c7-f98fce5e2200 Correlation ID: 0dc03ccb-768a-4667-8fb3-c0234953e410 Timestamp: 2026-07-25 20:27:52Z - Correlation ID: 0dc03ccb-768a-4667-8fb3-c0234953e410 - Trace ID: 453686c3-5c2f-4670-85c7-f98fce5e2200
Error getting the secret: invalid_client: 7000222 - [2026-07-25 20:27:52Z]: 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: 14871214-9f3b-4dff-be9f-c3420a1d2900 Correlation ID: 06a70674-d2ea-4688-a31a-ce049d807a57 Timestamp: 2026-07-25 20:27:52Z - Correlation ID: 06a70674-d2ea-4688-a31a-ce049d807a57 - Trace ID: 14871214-9f3b-4dff-be9f-c3420a1d2900
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)