The Wayback Machine - https://web.archive.org/web/20200916183741/https://github.com/nodegit/nodegit/issues/1729
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: too many redirects or authentication replays #1729

Open
pvpatil31 opened this issue Sep 26, 2019 · 0 comments
Open

Error: too many redirects or authentication replays #1729

pvpatil31 opened this issue Sep 26, 2019 · 0 comments

Comments

@pvpatil31
Copy link

@pvpatil31 pvpatil31 commented Sep 26, 2019

System information

  • node version: 10.16.3
  • npm or yarn version: 6.9.0
  • OS/version/architecture: Windows Server 2012 R2 Standard
    win32 6.3.9600 x64
  • Applicable nodegit version: 0.24.3
node -v
npm -v # (or yarn -v)
node -e "console.log(process.platform)"
node -e "console.log(require('os').release())"
node -e "console.log(console.log(process.arch))"

I have following code to clone repo from http://tfs:8080/tfs, I am using userpassPlaintextNew.

const nodegit = require('nodegit');
const conf = require('../common/config');

var opts = {
    fetchOpts: {
        callbacks: {
            credentials: (() => {
               return nodegit.Cred.userpassPlaintextNew(conf.account, conf.password)
            })
        }
    }
};

exports.cloneRepo = async(url, gitDir) => {
    await nodegit.Clone(url, gitDir, opts)
    .then((repo) => {
        //console.log('repo done, repo.workdir', repo);
    })
    .catch((err) => {
        throw new Error(`Failed to get git folder - ${err.massage}`);
    });
}

I hosted this node js app using iisnode on IIS on windows 10 machine and call works fine.
But when this is hosted on windows server 2012 R2, it is giving me this error -

Error: too many redirects or authentication replays

Could someone please help me with this, appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.