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-01-02 21:15: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: 23cbec87-28ae-460a-ab63-62313ef40201 Correlation ID: e1e6a4fb-4597-489c-b2d7-b000e882d6b4 Timestamp: 2026-01-02 21:15:03Z - Correlation ID: e1e6a4fb-4597-489c-b2d7-b000e882d6b4 - Trace ID: 23cbec87-28ae-460a-ab63-62313ef40201
(node:4120) [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-01-02 21:15:04Z]: 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: b65ce56b-3ad3-4bd1-a6ac-d146a85d1c00 Correlation ID: 8f71b510-bd9c-4b29-903d-e1152588a331 Timestamp: 2026-01-02 21:15:04Z - Correlation ID: 8f71b510-bd9c-4b29-903d-e1152588a331 - Trace ID: b65ce56b-3ad3-4bd1-a6ac-d146a85d1c00
Error getting the secret: invalid_client: 7000222 - [2026-01-02 21:15:04Z]: 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: 4901f36b-43f3-4876-a77e-5147d1fe5c01 Correlation ID: 2c6e7596-9b06-42d3-85a7-219fb7bb5dbe Timestamp: 2026-01-02 21:15:04Z - Correlation ID: 2c6e7596-9b06-42d3-85a7-219fb7bb5dbe - Trace ID: 4901f36b-43f3-4876-a77e-5147d1fe5c01
Error getting the secret: invalid_client: 7000222 - [2026-01-02 21:15:05Z]: 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: 3ab24148-e8d5-4f24-b8ed-ef83a42f5501 Correlation ID: 5831ddb4-f4d8-4b13-9e16-05951dc45d86 Timestamp: 2026-01-02 21:15:05Z - Correlation ID: 5831ddb4-f4d8-4b13-9e16-05951dc45d86 - Trace ID: 3ab24148-e8d5-4f24-b8ed-ef83a42f5501
Error getting the secret: invalid_client: 7000222 - [2026-01-02 21:15:05Z]: 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: 543e4272-7da0-4dbe-a6a2-897ce7ac4f01 Correlation ID: a7d594c5-9960-45a9-966c-5e869b9a5296 Timestamp: 2026-01-02 21:15:05Z - Correlation ID: a7d594c5-9960-45a9-966c-5e869b9a5296 - Trace ID: 543e4272-7da0-4dbe-a6a2-897ce7ac4f01
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)