Skip to content

Instantly share code, notes, and snippets.

@garuma
Created February 16, 2017 18:01
Show Gist options
  • Save garuma/e75dc824c57435990b88c0004d4e2e82 to your computer and use it in GitHub Desktop.
Save garuma/e75dc824c57435990b88c0004d4e2e82 to your computer and use it in GitHub Desktop.
mono NuGet.exe push -Source VSTSXam -ApiKey VSTS BigPkg.nupkg -Verbosity detailed 2017-02-10 18:14:14 jeremie ttys006
NuGet Version: 4.0.0.61274
Pushing BigPkg.nupkg to 'https://<remote>/nuget/v2/'...
PUT https://<remote>/nuget/v2/
Calling base SendAsync from HttpSourceAuthenticationHandler
Calling base SendAsync from StsAuthenticationHandler
BadRequest https://<remote>/nuget/v2/ 4350ms
++ Request
Method: PUT, RequestUri: 'https://<remote>/nuget/v2/', Version: 1.1, Content: System.Net.Http.MultipartFormDataContent, Headers:
{
X-NuGet-ApiKey: VSTS
user-agent: NuGet Command Line/4.0.0 (Unix 16.4.0.0)
Accept-Language: en-US
Content-Type: multipart/form-data; boundary="f2676f5c-985c-4a2e-8454-3c7c7212a54d"
Content-Length: 5624063
}
++ Response
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: NuGet.Protocol.DownloadTimeoutStreamContent, Headers:
{
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 10 Feb 2017 23:17:43 GMT
Connection: close
}
Response content
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Verb</h2>
<hr><p>HTTP Error 400. The request verb is invalid.</p>
</BODY></HTML>
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: 400 (Bad Request)
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x0002d] in <519e9ba4025240d5903118340c4e9f31>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<>c+<<PushPackageToServer>b__19_1>d.MoveNext () [0x000ea] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.HttpSource+<ProcessResponseAsync>d__14`1[T].MoveNext () [0x0019a] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<PushPackageToServer>d__19.MoveNext () [0x00143] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<PushPackageCore>d__13.MoveNext () [0x001c9] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<PushPackage>d__12.MoveNext () [0x00167] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<Push>d__8.MoveNext () [0x00131] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Commands.PushRunner+<Run>d__0.MoveNext () [0x00311] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.CommandLine.PushCommand+<ExecuteCommandAsync>d__28.MoveNext () [0x00199] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00014] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00052] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Threading.Tasks.Task.Wait () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.CommandLine.Command.Execute () [0x000d9] in <37e42c4a32b440a9a2e761339a942e13>:0
at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x0023a] in <37e42c4a32b440a9a2e761339a942e13>:0
---> (Inner Exception #0) System.Net.Http.HttpRequestException: 400 (Bad Request)
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x0002d] in <519e9ba4025240d5903118340c4e9f31>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<>c+<<PushPackageToServer>b__19_1>d.MoveNext () [0x000ea] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.HttpSource+<ProcessResponseAsync>d__14`1[T].MoveNext () [0x0019a] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<PushPackageToServer>d__19.MoveNext () [0x00143] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<PushPackageCore>d__13.MoveNext () [0x001c9] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<PushPackage>d__12.MoveNext () [0x00167] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Protocol.Core.Types.PackageUpdateResource+<Push>d__8.MoveNext () [0x00131] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.Commands.PushRunner+<Run>d__0.MoveNext () [0x00311] in <37e42c4a32b440a9a2e761339a942e13>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at NuGet.CommandLine.PushCommand+<ExecuteCommandAsync>d__28.MoveNext () [0x00199] in <37e42c4a32b440a9a2e761339a942e13>:0 <---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment