nexus-cli icon indicating copy to clipboard operation
nexus-cli copied to clipboard

HTTP Code: 400

Open vbrinza opened this issue 6 years ago • 4 comments

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

vbrinza avatar May 22 '18 16:05 vbrinza

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

zdtsw avatar Jul 24 '18 11:07 zdtsw

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.

funny-eagle avatar Sep 17 '18 07:09 funny-eagle

thanks it worked

vbrinza avatar Oct 18 '18 12:10 vbrinza

how about when the url has no Repository ?

StevenBrown008 avatar Jul 29 '22 05:07 StevenBrown008