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-25 11:05:16Z]: 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: 01bc2af6-45ee-46a4-b5ad-6795bfaa0c00 Correlation ID: c4104d21-e066-4c74-8061-4d7931e3677a Timestamp: 2026-04-25 11:05:16Z - Correlation ID: c4104d21-e066-4c74-8061-4d7931e3677a - Trace ID: 01bc2af6-45ee-46a4-b5ad-6795bfaa0c00
(node:1600) [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-25 11:05:16Z]: 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: e1587986-22a3-4f5f-bf96-d9ace4813100 Correlation ID: c22073e2-22e3-4654-ae14-3cc3095d7c87 Timestamp: 2026-04-25 11:05:16Z - Correlation ID: c22073e2-22e3-4654-ae14-3cc3095d7c87 - Trace ID: e1587986-22a3-4f5f-bf96-d9ace4813100
Error getting the secret: invalid_client: 7000222 - [2026-04-25 11:05:16Z]: 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: c25d63a6-1a2d-489a-8fd3-45064f8f0b00 Correlation ID: f8efb040-8f8d-49bd-a0dc-5e3299e2e456 Timestamp: 2026-04-25 11:05:16Z - Correlation ID: f8efb040-8f8d-49bd-a0dc-5e3299e2e456 - Trace ID: c25d63a6-1a2d-489a-8fd3-45064f8f0b00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 11:05:16Z]: 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: 01bc2af6-45ee-46a4-b5ad-6795c5aa0c00 Correlation ID: abc25a68-8964-4f69-b35a-cda6fed8916d Timestamp: 2026-04-25 11:05:16Z - Correlation ID: abc25a68-8964-4f69-b35a-cda6fed8916d - Trace ID: 01bc2af6-45ee-46a4-b5ad-6795c5aa0c00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 11:05:16Z]: 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: 2fa580be-d30a-46fa-b10f-94ab1a080d00 Correlation ID: e5bce76a-54ad-43ca-bfe0-a826a0aac6f8 Timestamp: 2026-04-25 11:05:16Z - Correlation ID: e5bce76a-54ad-43ca-bfe0-a826a0aac6f8 - Trace ID: 2fa580be-d30a-46fa-b10f-94ab1a080d00
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)