Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Error when pushing package
-
Can't seem to get package pushing to work
Proget server 5.0.7 - linux docker container on EC2 docker host instanceI can access the proget web page and have set up a nuget feed with a end point of http://proget.oneomics.net/nuget/main. Set up an api key for the feed in the admin section. When I try and push with
nuget push Sciex.TeamCity.Common.1.0.0.1.nupkg -Source http://proget.oneomics.net/nuget/netcore2 -ApiKey kvdDECKMvnwOdCXVslKOGg==Pushing Sciex.TeamCity.Common.1.0.0.1.nupkg to 'http://proget.oneomics.net/nuget/netcore2'...
PUT http://proget.oneomics.net/nuget/netcore2/
BadRequest http://proget.oneomics.net/nuget/netcore2/ 471ms
Response status code does not indicate success: 400 (Bad Request).
Also tried username:password for the API key, which did not work.Fiddler says:
Request:
PUT http://proget.oneomics.net/nuget/netcore2/ HTTP/1.1
X-NuGet-ApiKey: kvdDECKMvnwOdCXVslKOGg==
user-agent: NuGet Command Line/4.4.1 (Microsoft Windows NT 6.2.9200.0)
X-NuGet-Client-Version: 4.4.1
Accept-Language: en-US
Content-Type: multipart/form-data; boundary="b0b5e19c-52ec-41af-94f0-e0e8995b6e92"
Host: proget.oneomics.net
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Content-Length: 7591--b0b5e19c-52ec-41af-94f0-e0e8995b6e92
Content-Type: application/octet-stream
Content-Disposition: form-data; name=package; filename=package.nupkg; filename*=utf-8''package.nupkg
[binary data follows]RESPONSE
HTTP/1.1 400 Bad Request
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: text/html
Server: Mono-HTTPAPI/1.0
Date: Fri, 19 Jan 2018 15:11:11 GMT
Content-Length: 34
Connection: closeThere must be exactly one package.
Using nuget.exe ver 4.4.1I am pretty sure the package does not exist on the feed.
any help would be appreciated.
thanks in advance(note server is not public - works only from specific IP addresses.
Friedrich
Product: ProGet
Version: 5.0.7
-
Hello Friedrich,
This appears to be a bug in Mono. We previously had a workaround that would parse multipart requests manually using the input stream, but it appears that even that is broken now.
I've filed mono#6801 with a test case.
Unfortunately, there is not much we can do until this is resolved on their end.
-
Hi,
any idea when this will be working again?
Also, I found a workaround - with nuget.exe version 3.4.4 it seems to be working.
Best regards,
Florian
-
Any update on this?
We are also using 3.4.4 to get around this issue but obviously it's a bad idea to use outdated software.Trent
-
Hello,
The ProGet 5.1.2 image on Docker Hub uses a version of mono with the pull request mentioned above included.
If you want to use an older version of ProGet with this fix, you can build an image using a command like this:
docker build --pull -t inedo/proget:5.0.13 https://github.com/Inedo/proget-docker#5.0.13
-
The ProGet 5.1.2 image does not help. I trying to push from TeamCity
Any ideas?[nuget push] info : PUT http://10.0.0.10/nuget/snow-nuget/ [nuget push] info : BadRequest http://10.0.0.10/nuget/snow-nuget/ 257ms [nuget push] error: Response status code does not indicate success: 400 (There must be exactly one package.). [nuget push] Process exited with code 1
-
This error indicates an incomplete request is being sent to ProGet; typically it happens from misconfigured client that is not authenticating properly.... but it's really hard to guess from that error message alone. Unfortunately I'm not familiar enough with how to configure TeamCity to advise on how to fix this.
Perhaps cross-post this on their support forums as well.