I think we should guard for situations with infinite redirections by using a counter. _Originally posted by @calebkiage in https://github.com/microsoft/kiota/pull/6096#discussion_r1998177397_ in vscode/microsoft-kiota/src/kiotaInterop/install.ts