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

401 on _apis/Contribution/dataProviders/query? #63

Open
clement-nardi opened this issue Jun 29, 2023 · 0 comments
Open

401 on _apis/Contribution/dataProviders/query? #63

clement-nardi opened this issue Jun 29, 2023 · 0 comments

Comments

@clement-nardi
Copy link

Hi!

Thank you for this great tool!

In the logs I systematically get an error at startup:

{"level":"error","caller":"azure-devops-exporter/metrics_resourceusage.go:59","msg":"response status code is 401 (expected 200), url: https://dev.azure.com/***/_apis/Contribution/dataProviders/query?api-version=5.1-preview.1","collector":"ResourceUsage","stacktrace":"
main.(*MetricsCollectorResourceUsage).collectResourceUsageAgent
/go/src/github.com/webdevops/azure-devops-exporter/metrics_resourceusage.go:59
main.(*MetricsCollectorResourceUsage).Collect
/go/src/github.com/webdevops/azure-devops-exporter/metrics_resourceusage.go:53
github.com/webdevops/go-common/prometheus/collector.(*Collector).collectRun.func1
/go/pkg/mod/github.com/webdevops/[email protected]/prometheus/collector/collector.go:330
"}

Do you know which permission is needed to access this API?
I found this documentation, but it didn't help much..

I'm actually not sure what impact this error has on the tool.

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