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-10-02 17:34:22Z]: 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: 743428e7-b426-4436-b2a6-d80e888b5200 Correlation ID: 76a7eadc-4985-4039-8990-54cd9ac8a40e Timestamp: 2026-10-02 17:34:22Z - Correlation ID: 76a7eadc-4985-4039-8990-54cd9ac8a40e - Trace ID: 743428e7-b426-4436-b2a6-d80e888b5200
(node:3404) [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-10-02 17:34:22Z]: 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: 743428e7-b426-4436-b2a6-d80e998b5200 Correlation ID: e4e46516-b062-47fc-a5f3-28c95f686d28 Timestamp: 2026-10-02 17:34:22Z - Correlation ID: e4e46516-b062-47fc-a5f3-28c95f686d28 - Trace ID: 743428e7-b426-4436-b2a6-d80e998b5200
Error getting the secret: invalid_client: 7000222 - [2026-10-02 17:34:22Z]: 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: 382d8dd7-4352-44cc-949e-e809340bbf00 Correlation ID: 2dde1a42-c0dd-45e1-8e19-e48a173772ff Timestamp: 2026-10-02 17:34:22Z - Correlation ID: 2dde1a42-c0dd-45e1-8e19-e48a173772ff - Trace ID: 382d8dd7-4352-44cc-949e-e809340bbf00
Error getting the secret: invalid_client: 7000222 - [2026-10-02 17:34:23Z]: 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: 969b6a74-052b-4fa4-82c0-c7a4e8630a00 Correlation ID: f14f9e8f-6477-40aa-95d8-8c507ec6bb6e Timestamp: 2026-10-02 17:34:23Z - Correlation ID: f14f9e8f-6477-40aa-95d8-8c507ec6bb6e - Trace ID: 969b6a74-052b-4fa4-82c0-c7a4e8630a00
Error getting the secret: invalid_client: 7000222 - [2026-10-02 17:34:23Z]: 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: 7ff789d2-623b-4cf4-8270-53263be46200 Correlation ID: f76ffff5-210b-47e4-b110-8542d65d7722 Timestamp: 2026-10-02 17:34:23Z - Correlation ID: f76ffff5-210b-47e4-b110-8542d65d7722 - Trace ID: 7ff789d2-623b-4cf4-8270-53263be46200
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)