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-04-22 22:19:37Z]: 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: e8861aeb-0531-462a-b25b-9d7f9d5c1e00 Correlation ID: 7b543543-9899-4d54-b00e-d64437b692d8 Timestamp: 2026-04-22 22:19:37Z - Correlation ID: 7b543543-9899-4d54-b00e-d64437b692d8 - Trace ID: e8861aeb-0531-462a-b25b-9d7f9d5c1e00
(node:1248) [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-04-22 22:19:37Z]: 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: 9c49dbba-7685-4182-a297-57a78cd85b00 Correlation ID: 908eed94-725d-42e5-9c6d-47d90229be0a Timestamp: 2026-04-22 22:19:37Z - Correlation ID: 908eed94-725d-42e5-9c6d-47d90229be0a - Trace ID: 9c49dbba-7685-4182-a297-57a78cd85b00
Error getting the secret: invalid_client: 7000222 - [2026-04-22 22:19:38Z]: 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: 89c58c89-0b65-4eb9-a18f-1dd3f5dc0c00 Correlation ID: 20028c57-d682-4092-82a4-330541dedb2d Timestamp: 2026-04-22 22:19:38Z - Correlation ID: 20028c57-d682-4092-82a4-330541dedb2d - Trace ID: 89c58c89-0b65-4eb9-a18f-1dd3f5dc0c00
Error getting the secret: invalid_client: 7000222 - [2026-04-22 22:19:38Z]: 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: 864708ba-e8a3-4f76-8c93-929c86be1700 Correlation ID: 5f2ae539-0bd7-486e-8243-2b35e6780c58 Timestamp: 2026-04-22 22:19:38Z - Correlation ID: 5f2ae539-0bd7-486e-8243-2b35e6780c58 - Trace ID: 864708ba-e8a3-4f76-8c93-929c86be1700
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)