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-04 03:38:48Z]: 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: 1cd86505-f371-40a4-a2b8-0204ddea0200 Correlation ID: 9ff50801-5518-4812-a576-1767d352f151 Timestamp: 2026-07-04 03:38:48Z - Correlation ID: 9ff50801-5518-4812-a576-1767d352f151 - Trace ID: 1cd86505-f371-40a4-a2b8-0204ddea0200
(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-04 03:38:49Z]: 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: 32f5e396-ef49-4dc4-b953-1297b4840f00 Correlation ID: 1c94c4aa-8ddc-4646-a32b-97ee7dd5cebe Timestamp: 2026-07-04 03:38:49Z - Correlation ID: 1c94c4aa-8ddc-4646-a32b-97ee7dd5cebe - Trace ID: 32f5e396-ef49-4dc4-b953-1297b4840f00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 03:38:49Z]: 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: 1173a8f2-77f8-429e-b3b8-fc27e2760300 Correlation ID: ac712081-87e1-49e9-9e8f-1d9ca3650221 Timestamp: 2026-07-04 03:38:49Z - Correlation ID: ac712081-87e1-49e9-9e8f-1d9ca3650221 - Trace ID: 1173a8f2-77f8-429e-b3b8-fc27e2760300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 03:38:49Z]: 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: 2e079db8-d7fa-449f-94d5-17ce438b0d00 Correlation ID: ac556d6e-59ff-4036-a427-d1b160bc59e5 Timestamp: 2026-07-04 03:38:49Z - Correlation ID: ac556d6e-59ff-4036-a427-d1b160bc59e5 - Trace ID: 2e079db8-d7fa-449f-94d5-17ce438b0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 03:38:49Z]: 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: 2e079db8-d7fa-449f-94d5-17ce468b0d00 Correlation ID: 07ad4e93-be9a-411e-ba13-099b4cec58d0 Timestamp: 2026-07-04 03:38:49Z - Correlation ID: 07ad4e93-be9a-411e-ba13-099b4cec58d0 - Trace ID: 2e079db8-d7fa-449f-94d5-17ce468b0d00
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)