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

Download logs does not work with v2 projects #27

Open
kevinburke opened this issue Mar 8, 2018 · 1 comment
Open

Download logs does not work with v2 projects #27

kevinburke opened this issue Mar 8, 2018 · 1 comment

Comments

@kevinburke
Copy link
Contributor

Lately, I've been getting {"message": "Not found"} when downloading logs from CircleCI v2 projects. Need to investigate and figure out what the right URL should be.

			// URL we are trying to fetch looks like:
			// https://circleci.com/api/v1.1/project/github/Shyp/go-circle/11/output/9/0
			uri := fmt.Sprintf("/%s/%s/%s/%d/output/%d/%d?circle-token=%s", cb.VCSType, cb.Username, cb.RepoName, cb.BuildNum, failure[0], failure[1], token)
			req, err := v11client.NewRequest("GET", uri, nil)
			if err != nil {
				return err
			}

It might be as simple as updating the API url to v2. Orrrr we might need to make it conditional on the version of the project.

@dav
Copy link

dav commented Mar 8, 2018

@kevinburke I think Circle is sunsetting v1 projects. Everything needs to be v2 by some deadline that I think is a couple of months out

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

2 participants