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-26 22:27:58Z]: 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: 2459709f-60a0-40f4-bd44-c16398e42a00 Correlation ID: 9462f76d-5896-4c2f-b269-516d716cfd18 Timestamp: 2026-04-26 22:27:58Z - Correlation ID: 9462f76d-5896-4c2f-b269-516d716cfd18 - Trace ID: 2459709f-60a0-40f4-bd44-c16398e42a00
(node:1568) [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-26 22:27:58Z]: 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: 2f52b004-c2ac-42b1-9682-353dcbd92700 Correlation ID: 0c795fe4-4fe4-4cc9-870b-c70cd86977ae Timestamp: 2026-04-26 22:27:58Z - Correlation ID: 0c795fe4-4fe4-4cc9-870b-c70cd86977ae - Trace ID: 2f52b004-c2ac-42b1-9682-353dcbd92700
Error getting the secret: invalid_client: 7000222 - [2026-04-26 22:27:58Z]: 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: 13a3855c-7930-4fb6-a44d-d9135b6c5100 Correlation ID: 785060c0-8954-4a51-a239-4f5cd644cb3a Timestamp: 2026-04-26 22:27:58Z - Correlation ID: 785060c0-8954-4a51-a239-4f5cd644cb3a - Trace ID: 13a3855c-7930-4fb6-a44d-d9135b6c5100
Error getting the secret: invalid_client: 7000222 - [2026-04-26 22:27:59Z]: 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: 89cb39bd-5f24-4d8f-929b-26c483023d00 Correlation ID: a27115d9-270e-42c2-abe4-c46e81210b9f Timestamp: 2026-04-26 22:27:59Z - Correlation ID: a27115d9-270e-42c2-abe4-c46e81210b9f - Trace ID: 89cb39bd-5f24-4d8f-929b-26c483023d00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 22:27:59Z]: 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: 40f7cc25-da75-4960-b1d6-0c5a25073300 Correlation ID: 5dea921f-a08c-4f5e-aa77-2c3615304300 Timestamp: 2026-04-26 22:27:59Z - Correlation ID: 5dea921f-a08c-4f5e-aa77-2c3615304300 - Trace ID: 40f7cc25-da75-4960-b1d6-0c5a25073300
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)