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-06-18 16:02: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: 3db35673-04e8-4b80-8741-40d764de0a00 Correlation ID: c57879fb-0f49-429e-abcb-1053d9a03c0e Timestamp: 2026-06-18 16:02:38Z - Correlation ID: c57879fb-0f49-429e-abcb-1053d9a03c0e - Trace ID: 3db35673-04e8-4b80-8741-40d764de0a00
(node:4284) [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-06-18 16:02: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: 38ae24e6-8fa1-4091-bf3c-8f8e75da3d00 Correlation ID: e69ea041-4d5f-4c81-845d-d3e814397789 Timestamp: 2026-06-18 16:02:38Z - Correlation ID: e69ea041-4d5f-4c81-845d-d3e814397789 - Trace ID: 38ae24e6-8fa1-4091-bf3c-8f8e75da3d00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 16:02: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: b3ad1026-3451-4a67-89f2-d0a2e5f10e00 Correlation ID: b8cb8d98-dbe6-49e5-9742-d62a69de2847 Timestamp: 2026-06-18 16:02:38Z - Correlation ID: b8cb8d98-dbe6-49e5-9742-d62a69de2847 - Trace ID: b3ad1026-3451-4a67-89f2-d0a2e5f10e00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 16:02:39Z]: 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: 5a7352bb-880e-42d5-b91b-696ad34a7f00 Correlation ID: 1bbcc00c-6991-4e7f-8606-761132d2e145 Timestamp: 2026-06-18 16:02:39Z - Correlation ID: 1bbcc00c-6991-4e7f-8606-761132d2e145 - Trace ID: 5a7352bb-880e-42d5-b91b-696ad34a7f00
Error getting the secret: invalid_client: 7000222 - [2026-06-18 16:02:39Z]: 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: 38ae24e6-8fa1-4091-bf3c-8f8e91da3d00 Correlation ID: 1c8268f1-2f8b-4441-9967-7272a14adcbe Timestamp: 2026-06-18 16:02:39Z - Correlation ID: 1c8268f1-2f8b-4441-9967-7272a14adcbe - Trace ID: 38ae24e6-8fa1-4091-bf3c-8f8e91da3d00
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)