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 04:45:46Z]: 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: 672429ee-698a-47e2-b8ce-b55c32b90f00 Correlation ID: 868a5772-fe3c-460c-a385-3b5542b42654 Timestamp: 2026-07-01 04:45:46Z - Correlation ID: 868a5772-fe3c-460c-a385-3b5542b42654 - Trace ID: 672429ee-698a-47e2-b8ce-b55c32b90f00
(node:4756) [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 04:45:46Z]: 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: 004e0193-51bb-4133-985c-f1425c066b00 Correlation ID: 1405b6fd-3510-4a20-baac-8fe000f5e4b3 Timestamp: 2026-07-01 04:45:46Z - Correlation ID: 1405b6fd-3510-4a20-baac-8fe000f5e4b3 - Trace ID: 004e0193-51bb-4133-985c-f1425c066b00
Error getting the secret: invalid_client: 7000222 - [2026-07-01 04:45:46Z]: 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: f23ac2f9-6db3-49e0-8f40-66a618375f00 Correlation ID: 4ecb96fc-5e48-4ca6-b25e-65c5460b7890 Timestamp: 2026-07-01 04:45:46Z - Correlation ID: 4ecb96fc-5e48-4ca6-b25e-65c5460b7890 - Trace ID: f23ac2f9-6db3-49e0-8f40-66a618375f00
Error getting the secret: invalid_client: 7000222 - [2026-07-01 04:45:47Z]: 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: 6dd32efe-1315-4000-a6ff-5a23b6fb6100 Correlation ID: 15b6426a-8e89-4457-ac98-fdb50f2bc166 Timestamp: 2026-07-01 04:45:47Z - Correlation ID: 15b6426a-8e89-4457-ac98-fdb50f2bc166 - Trace ID: 6dd32efe-1315-4000-a6ff-5a23b6fb6100
Error getting the secret: invalid_client: 7000222 - [2026-07-01 04:45:47Z]: 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: 3d7f53ff-68b4-41fe-a8f5-5c9601860b00 Correlation ID: e35a98e8-952a-4392-a4b3-67bb21012a38 Timestamp: 2026-07-01 04:45:47Z - Correlation ID: e35a98e8-952a-4392-a4b3-67bb21012a38 - Trace ID: 3d7f53ff-68b4-41fe-a8f5-5c9601860b00
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)