Hi I get an error when trying to push a nuget package with @octopusdeploy/gulp-octo running Octopus 3.3.0-beta0001.
This is the code:
gulp.task(‘package’, function () {
return gulp.src([’/*’, '!bin{,/}’, ‘!src{,/**}’, ‘!gulpfile.babel.js’])
.pipe(octo.pack(‘nupkg’))
.pipe(octo.push({
host: ‘http://my-octopus-server’, apiKey: ‘API-XXX’}));
});
This is the error on fiddler:
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 10 Feb 2016 03:35:02 GMT
Transfer-Encoding: chunked
Connection: close
400
{
“ErrorMessage”: “Default tag is not valid per the schema. Verify that attributes are correct. Line 16, position 6.”,
“FullException”: “System.Xml.XmlException: Default tag is not valid per the schema. Verify that attributes are correct. Line 16, position 6.\r\n at System.IO.Packaging.ZipPackage.ContentTypeHelper.ProcessDefaultTagAttributes(XmlTextReader reader)\r\n at System.IO.Packaging.ZipPackage.ContentTypeHelper.ParseContentTypesFile(ZipFileInfoCollection zipFiles)\r\n at System.IO.Packaging.ZipPackage.ContentTypeHelper…ctor(ZipArchive zipArchive, IgnoredItemHelper ignoredItemHelper)\r\n at System.IO.Packaging.ZipPackage…ctor(Stream s, FileMode mode, FileAccess access, Boolean streaming)\r\n at System.IO.Packaging.Package.Open(Stream stream, FileMode packageMode, FileAccess packageAccess, Boolean streaming)\r\n at Octopus.Core.BuiltInFeed.FastZipPackage.Open(String fileLocation, Stream stream, Byte[] hash) in Y:\work\refs\tags\3.3.0-beta.1\source\Octopus.Core\BuiltInFeed\Fast
400
ZipPackage.cs:line 97\r\n at Octopus.Core.BuiltInFeed.FastZipPackage.Open(String fileLocation, IHashProvider hashProvider) in Y:\work\refs\tags\3.3.0-beta.1\source\Octopus.Core\BuiltInFeed\FastZipPackage.cs:line 131\r\n at Octopus.Core.Packages.Extraction.NupkgPackageExtractor.GetIndexPackageData(String packageFile) in Y:\work\refs\tags\3.3.0-beta.1\source\Octopus.Core\Packages\Extraction\NupkgPackageExtractor.cs:line 50\r\n at Octopus.Server.Web.Api.NuGet.NuGetPackagePushActionBase1.Execute() in Y:\\work\\refs\\tags\\3.3.0-beta.1\\source\\Octopus.Server\\Web\\Api\\NuGet\\NuGetPackagePushActionBase.cs:line 59\r\n at Octopus.Server.Web.Infrastructure.Api.Responder
1.Respond(TDescriptor options, NancyContext context) in Y:\work\refs\tags\3.3.0-beta.1\source\Octopus.Server\Web\Infrastructure\Api\Responder.cs:line 162\r\n at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)\r\n at CallSite.Target(Closure , CallSite , O
195
bject , Object , NancyContext )\r\n at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass0_0.<.ctor>b__0(Object o) in Y:\work\refs\tags\3.3.0-beta.1\source\Octopus.Server\Web\Api\OctopusRestApiModule.cs:line 46\r\n at CallSite.Target(Closure , CallSite , Func`2 , Object )\r\n at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)”
}
0
This is the error on the console:
[16:43:50] Error in plugin 'gulp-octo.push’
Message:
Internal Server Error (500)