#429 the 'copr-cli' from 'master' prints misleading error for "SRPM" not found
Closed 5 years ago Opened 5 years ago by praiskup.

$ cd cli
$ ./copr build ping postgresql-10.5-4.fc30.src.rpm
Bad request parameters: {'pkgs': ["A list of http[s] URLs separated by whitespace characters is needed ('postgresql-10.5-4.fc30.src.rpm' doesn't seem to be a valid URL)."]}

Metadata Update from @frostyx:
- Issue assigned to frostyx

5 years ago

Metadata Update from @frostyx:
- Issue tagged with: API

5 years ago

It seems to work, actually

[jkadlcik@chromie cli]$ PYTHONPATH=/home/jkadlcik/git/copr/python/ ./copr build @copr/foo ~/Downloads/hello-2.8-1.fc23.src.rpm --nowait
Uploading package /home/jkadlcik/Downloads/hello-2.8-1.fc23.src.rpm
100% |################################| 720kB 61.8MB/s eta 0:00:00Build was added to foo:
  http://localhost:5000/coprs/build/2975
Created builds: 2975

The original error is printed when trying to submit a non-existing file.

[jkadlcik@chromie cli]$ PYTHONPATH=/home/jkadlcik/git/copr/python/ ./copr build @copr/foo ~/Downloads/nonexisting-2.8-1.fc23.src.rpm --nowait
Bad request parameters: {'pkgs': ["A list of http[s] URLs separated by whitespace characters is needed ('/home/jkadlcik/Downloads/nonexisting-2.8-1.fc23.src.rpm' doesn't seem to be a valid URL)."]}

I wanted to just clarify that. It is not a user-friendly error and it should be fixed.

Right, sorry. I did not double check that.

Metadata Update from @praiskup:
- Issue untagged with: release-blocker

5 years ago

The previous behavior was:

Something went wrong:
Error: [Errno 2] No such file or directory: 'postgresql-10.5-4.fc30.src.rpm'

Metadata Update from @praiskup:
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata