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

HTTP Code: 400 #26

Open
vbrinza opened this issue May 22, 2018 · 4 comments
Open

HTTP Code: 400 #26

vbrinza opened this issue May 22, 2018 · 4 comments

Comments

@vbrinza
Copy link

vbrinza commented May 22, 2018

vitaliebrinza:nexus vitalieb$ ./nexus-cli -v
Nexus CLI version 1.0.0-beta

vitaliebrinza:nexus vitalieb$ ./nexus-cli configure
Enter Nexus Host: https://artefacts3.domain:8084
Enter Nexus Repository Name: company
Enter Nexus Username: admin
Enter Nexus Password: password

gives me:
vitaliebrinza:nexus vitalieb$ ./nexus-cli image ls
HTTP Code: 400

@zdtsw
Copy link

zdtsw commented Jul 24, 2018

I think it might be about the config you put there,
try to verify whether your Nexus Host and Repository is correctly configed.
you should find a file .credentials, you can directly modify content there instead of doing "nexus-cli configure" every time.

in my case, if i have port number set in Nexus Host, I got 400, but if I skip it, it works fine.
also the Repository name is the one you set in your Nexus.
login as admin and go to the repo you want to use, try to find URL that should be the one. ahead of "repository" is the "Nexus Host" value and after it is the "Nexus Repository Name" value

@funny-eagle
Copy link

funny-eagle commented Sep 17, 2018

Enter the nexus' port, not the docker repository's port.

My nexus' port is 9081, and the docker repository port is 9091,
when I enter http://ip:9091, it gives HTTP Code: 400.
I changed the port to 9081, it works.

@vbrinza
Copy link
Author

vbrinza commented Oct 18, 2018

thanks it worked

@StevenBrown008
Copy link

StevenBrown008 commented Jul 29, 2022

how about when the url has no Repository ?

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

4 participants