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

Self Hosted ADO fails due to misformed URL #38

Closed
Moumoutaru opened this issue May 24, 2021 · 0 comments · Fixed by #39
Closed

Self Hosted ADO fails due to misformed URL #38

Moumoutaru opened this issue May 24, 2021 · 0 comments · Fixed by #39

Comments

@Moumoutaru
Copy link

Moumoutaru commented May 24, 2021

The exporter throws errors trying to hit API endpoints due to a misformed URL when trying to use on-premises ADO. This happens because organization isn't added to the url path when --azuredevops.url= is defined.

/azure-devops-exporter --azuredevops.url=https://tfs.mydomain.biz --azuredevops.access-token=MyPATToken --azuredevops.organisation=DefaultCollection

ERRO[0016] response status code is 404 (expected 200), url: https://tfs.mydomain.biz/e7065b43-d240-4a6e-a9d7-aff9d09ec266/_apis/release/definitions?api-version=2.0&isDeleted=false&$top=100&$expand=environments,lastRelease  collector=Deployment project=Briefcase

Since we are specifying DefaultCollection the API endpoint should look like this:

https://tfs.mydomain.biz/DefaultCollection/e7065b43-d240-4a6e-a9d7-aff9d09ec266/_apis/release/definitions?api-version=2.0&isDeleted=false&$top=100&$expand=environments,lastRelease  collector=Deployment project=Briefcase
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

Successfully merging a pull request may close this issue.

1 participant