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

unable to update url base from redirection #16

Open
ZaxR opened this issue Nov 25, 2019 · 1 comment
Open

unable to update url base from redirection #16

ZaxR opened this issue Nov 25, 2019 · 1 comment

Comments

@ZaxR
Copy link

ZaxR commented Nov 25, 2019

I'm having trouble authenticating. When i try the username/password, I'm being given the error in the title. What am I doing wrong here?:

Using the following:

resources:
  - name: pullrequest
    type: concourse-bitbucket-pullrequest
    source:
      username: ((bb_user))
      password: ((bb_pass))
      uri: http://git.xxx.com/projects/SS/repos/some-repo

I receive this error:

Resource script '/opt/resource/check []' failed: exit status 128

stderr:
2019-11-25 21:35:02 - Configuring git credentials
2019-11-25 21:35:02 - Parsing payload
fatal: unable to update url base from redirection:
  asked for: http://git.xxx.com/projects/SS/repos/some-repo/info/refs?service=git-upload-pack
   redirect: http://git.xxx.com/login?next=/projects/SS/repos/some/info/refs?service%3Dgit-upload-pack
@ZaxR
Copy link
Author

ZaxR commented Nov 27, 2019

If I try the same thing with a personal access token instead of username/password, I get:

resource script '/opt/resource/check []' failed: exit status 128

stderr:
2019-11-27 20:06:05 - Configuring git credentials
2019-11-27 20:06:05 - Parsing payload
fatal: repository 'http://git.xxx.com/projects/SS/repos/some-repo/' not found

resource script '/opt/resource/check []' failed: exit status 128

stderr:
2019-11-27 20:06:46 - Configuring git credentials
2019-11-27 20:06:46 - Parsing payload
fatal: unable to access 'http://git.xxx.com/projects/SS/repos/some-repo/': The requested URL returned error: 400

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

No branches or pull requests

1 participant