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

Access Denied error could have better error message #159

Closed
stephennancekivell opened this issue Aug 13, 2017 · 0 comments
Closed

Access Denied error could have better error message #159

stephennancekivell opened this issue Aug 13, 2017 · 0 comments

Comments

@stephennancekivell
Copy link
Contributor

Hi I get this error when we dont have the password configured for my companies nexus server. Then sbt keeps retrying. Adding the password resolves the problem.

[error] Server access Error: Too many follow-up requests: 21 url=https://nexus.mycompany.com/nexus/content/groups/public/org/slf4j/slf4j-parent/1.7.23/slf4j-parent-1.7.23.jar

If I curl the server It defiantly returns a HTTP/1.1 401 Unauthorized.

I think retrying makes sense for other http errors but not the 401. In this case it would be better if the error clearly said access denied and maybe prompted the user to configure a password. This would help other users debug their problems.

I think the error comes from here, and we could add another case. https://github.com/sbt/librarymanagement/blob/1.x/ivy/src/main/scala/sbt/internal/librarymanagement/ivyint/GigahorseUrlHandler.scala#L65

PS. I'd be interested in contributing to this, but was unable to import project into intellij. I get unresolved dependency: com.thoughtworks.paranamer#paranamer;2.8

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