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-06-18 13:54: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: 6a9233dd-d0f4-47f2-8a20-54f01b6b7e00 Correlation ID: 190ddbcf-5034-41dd-a01f-dde6f9818d86 Timestamp: 2026-06-18 13:54:02Z - Correlation ID: 190ddbcf-5034-41dd-a01f-dde6f9818d86 - Trace ID: 6a9233dd-d0f4-47f2-8a20-54f01b6b7e00
(node:4876) [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-06-18 13:54: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: 08fc5005-0292-43cf-b087-b07495ed8700 Correlation ID: 00aa2e1a-e8d9-470b-bb72-4693ae59a4fd Timestamp: 2026-06-18 13:54:02Z - Correlation ID: 00aa2e1a-e8d9-470b-bb72-4693ae59a4fd - Trace ID: 08fc5005-0292-43cf-b087-b07495ed8700
Error getting the secret: invalid_client: 7000222 - [2026-06-18 13:54:03Z]: 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: 315cd695-cbe9-4ef0-b8ce-c46415c86e00 Correlation ID: 4cebada0-b99e-4267-97c8-c8380b44cb7f Timestamp: 2026-06-18 13:54:03Z - Correlation ID: 4cebada0-b99e-4267-97c8-c8380b44cb7f - Trace ID: 315cd695-cbe9-4ef0-b8ce-c46415c86e00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 13:54:03Z]: 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: 315cd695-cbe9-4ef0-b8ce-c46420c86e00 Correlation ID: cdb2d029-7a8a-4f67-a0d9-3d0ed23660ff Timestamp: 2026-06-18 13:54:03Z - Correlation ID: cdb2d029-7a8a-4f67-a0d9-3d0ed23660ff - Trace ID: 315cd695-cbe9-4ef0-b8ce-c46420c86e00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 13:54:03Z]: 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: 2c2f5d8d-f13c-460b-b455-9292e0d30600 Correlation ID: 5eda8311-7249-49af-877c-7f6cbe11b8ee Timestamp: 2026-06-18 13:54:03Z - Correlation ID: 5eda8311-7249-49af-877c-7f6cbe11b8ee - Trace ID: 2c2f5d8d-f13c-460b-b455-9292e0d30600
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)