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 - [2025-12-31 13:03:28Z]: 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: a9f82743-542a-48fa-a2d4-2c8618861101 Correlation ID: 92c54e6c-7c9a-4aa2-9cc4-ad35b3752aa8 Timestamp: 2025-12-31 13:03:28Z - Correlation ID: 92c54e6c-7c9a-4aa2-9cc4-ad35b3752aa8 - Trace ID: a9f82743-542a-48fa-a2d4-2c8618861101
(node:1620) [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 - [2025-12-31 13:03:29Z]: 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: 8ec305a7-2fd6-46da-99bb-2f8f25ceb800 Correlation ID: a1fed849-6ef8-4697-8119-4a629235acc4 Timestamp: 2025-12-31 13:03:29Z - Correlation ID: a1fed849-6ef8-4697-8119-4a629235acc4 - Trace ID: 8ec305a7-2fd6-46da-99bb-2f8f25ceb800
Error getting the secret: invalid_client: 7000222 - [2025-12-31 13:03:29Z]: 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: 34ba59ef-205f-4c4f-8ee2-70c82bc34000 Correlation ID: 4cdc5e50-9337-4a94-b42d-19e6173dfb0f Timestamp: 2025-12-31 13:03:29Z - Correlation ID: 4cdc5e50-9337-4a94-b42d-19e6173dfb0f - Trace ID: 34ba59ef-205f-4c4f-8ee2-70c82bc34000
Error getting the secret: invalid_client: 7000222 - [2025-12-31 13:03:29Z]: 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: a008050e-4d82-4112-a040-adb3619d2d01 Correlation ID: 7181bac6-c149-4774-8b1e-d051058e5bfe Timestamp: 2025-12-31 13:03:29Z - Correlation ID: 7181bac6-c149-4774-8b1e-d051058e5bfe - Trace ID: a008050e-4d82-4112-a040-adb3619d2d01
Error getting the secret: invalid_client: 7000222 - [2025-12-31 13:03:30Z]: 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: 180db27e-aaf6-40b6-8686-baa38be11801 Correlation ID: fcb010b2-2b9c-42bc-89be-b1e2c8b06877 Timestamp: 2025-12-31 13:03:30Z - Correlation ID: fcb010b2-2b9c-42bc-89be-b1e2c8b06877 - Trace ID: 180db27e-aaf6-40b6-8686-baa38be11801
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)