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-07-23 16:36:05Z]: 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: 56cf295e-80a3-4ab5-94af-5653540c0c00 Correlation ID: 479ba9af-8dce-447d-a7c4-55a44dbb63ae Timestamp: 2026-07-23 16:36:05Z - Correlation ID: 479ba9af-8dce-447d-a7c4-55a44dbb63ae - Trace ID: 56cf295e-80a3-4ab5-94af-5653540c0c00
(node:4300) [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-07-23 16:36:06Z]: 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: 7982ca9c-3f78-4bf2-9af6-38d2c3741200 Correlation ID: 141dc60a-5894-4ac1-bc78-93b1761e66a7 Timestamp: 2026-07-23 16:36:06Z - Correlation ID: 141dc60a-5894-4ac1-bc78-93b1761e66a7 - Trace ID: 7982ca9c-3f78-4bf2-9af6-38d2c3741200
Error getting the secret: invalid_client: 7000222 - [2026-07-23 16:36:06Z]: 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: 051443b2-460d-44a2-9885-50861ef11200 Correlation ID: f6adb809-e26a-4094-955b-877692d1d0a5 Timestamp: 2026-07-23 16:36:06Z - Correlation ID: f6adb809-e26a-4094-955b-877692d1d0a5 - Trace ID: 051443b2-460d-44a2-9885-50861ef11200
Error getting the secret: invalid_client: 7000222 - [2026-07-23 16:36:06Z]: 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: 1a56bcbb-e84b-442b-9430-d313c88b0b00 Correlation ID: 23921bc1-4db3-4d22-9a42-a802a4cf2e9e Timestamp: 2026-07-23 16:36:06Z - Correlation ID: 23921bc1-4db3-4d22-9a42-a802a4cf2e9e - Trace ID: 1a56bcbb-e84b-442b-9430-d313c88b0b00
Error getting the secret: invalid_client: 7000222 - [2026-07-23 16:36:07Z]: 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: 051443b2-460d-44a2-9885-508639f11200 Correlation ID: 3ebee340-d46d-4c52-a6ee-c7856a2ccd26 Timestamp: 2026-07-23 16:36:07Z - Correlation ID: 3ebee340-d46d-4c52-a6ee-c7856a2ccd26 - Trace ID: 051443b2-460d-44a2-9885-508639f11200
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)