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-02-26 20:52:19Z]: 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: dce385cd-0e59-46e0-9fb5-5c3a15d80f00 Correlation ID: 952ea11d-a069-44be-8f9f-9eab13cbc5cc Timestamp: 2026-02-26 20:52:19Z - Correlation ID: 952ea11d-a069-44be-8f9f-9eab13cbc5cc - Trace ID: dce385cd-0e59-46e0-9fb5-5c3a15d80f00
(node:5896) [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-02-26 20:52:19Z]: 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: fa658337-ea73-4483-a5a2-98acd94c1000 Correlation ID: 469b4f67-b7c9-437d-b3f6-233f2cdd4cca Timestamp: 2026-02-26 20:52:19Z - Correlation ID: 469b4f67-b7c9-437d-b3f6-233f2cdd4cca - Trace ID: fa658337-ea73-4483-a5a2-98acd94c1000
Error getting the secret: invalid_client: 7000222 - [2026-02-26 20:52:19Z]: 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: 681f298a-b412-43a2-aa63-75d578d31000 Correlation ID: 43bdf450-8ada-4fac-872c-ec1078ae1d3a Timestamp: 2026-02-26 20:52:19Z - Correlation ID: 43bdf450-8ada-4fac-872c-ec1078ae1d3a - Trace ID: 681f298a-b412-43a2-aa63-75d578d31000
Error getting the secret: invalid_client: 7000222 - [2026-02-26 20:52:20Z]: 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: 43ba7eb5-55a2-4ee5-a7f4-0721291a0c00 Correlation ID: 26397aeb-1e09-4fca-91dc-a6eb81503ed0 Timestamp: 2026-02-26 20:52:20Z - Correlation ID: 26397aeb-1e09-4fca-91dc-a6eb81503ed0 - Trace ID: 43ba7eb5-55a2-4ee5-a7f4-0721291a0c00
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)