Microsoft MVP성태의 닷넷 이야기
오류 유형: 486. nuget push 호출 시 405 Method Not Allowed 오류 발생 [링크 복사], [링크+제목 복사],
조회: 12350
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

nuget push 호출 시 405 Method Not Allowed 오류 발생

NuGet으로 다음과 같이 명령행에서 ApiKey를 이용해 패키지를 업로드할 수 있습니다.

d:\temp> nuget push d:\temp\TestPkg.5.4.0.1-alpha.nupkg ...[apikey]... -src https://www.nuget.org/api/v2/
Pushing TestPkg.5.4.0.1-alpha.nupkg to 'https://www.nuget.org/api/v2/'...
  PUT https://www.nuget.org/api/v2/
  MethodNotAllowed https://www.nuget.org/api/v2/ 2975ms
Response status code does not indicate success: 405 (Method Not Allowed).

그런데 저렇게 405 MethodNotAllowed 오류 메시지가 떨어집니다. ^^; -Verbosity 옵션을 줘도 딱히 도움 될 만한 메시지를 찾을 수는 없었습니다.

nuget push d:\temp\TestPkg.5.4.0.1-alpha.nupkg ay2...[apikey생략]...a4fm -Verbosity detailed -src https://www.nuget.org/api/v2/
NuGet Version: 4.7.1.5393
Pushing TestPkg.5.4.0.1-alpha.nupkg to 'https://www.nuget.org/api/v2/'...
  PUT https://www.nuget.org/api/v2/
  MethodNotAllowed https://www.nuget.org/api/v2/ 2724ms
Response status code does not indicate success: 405 (Method Not Allowed).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 405 (Method Not Allowed).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at NuGet.Protocol.Core.Types.PackageUpdateResource.<>c.<PushPackageToServer>b__18_0(HttpResponseMessage response)
   at NuGet.Protocol.HttpSource.<ProcessResponseAsync>d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
...[생략]...
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.CommandLine.PushCommand.<ExecuteCommandAsync>d__32.MoveNext()

검색 결과,

HTTP 405 (Method Not Allowed) when pushing to nuget.org
; https://github.com/NuGet/NuGetGallery/issues/3334

-src 인자의 값이 잘못되었다고 합니다. 마지막에 package 경로를 붙여야 했던 것입니다. 이렇게!

nuget push d:\temp\TestPkg.5.4.0.1-alpha.nupkg ay2n...[apikey생략]...a4fm -src https://www.nuget.org/api/v2/package




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 9/17/2018]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 91  92  93  94  [95]  96  97  98  99  100  101  102  103  104  105  ...
NoWriterDateCnt.TitleFile(s)
11265정성태8/10/201741352기타: 66. 도서: 시작하세요! C# 7.1 프로그래밍: 기본 문법부터 실전 예제까지 [11]
11264정성태8/9/201715348오류 유형: 414. UWP app을 signtool.exe로 서명 시 0x8007000b 오류 발생
11263정성태8/9/201712386오류 유형: 413. The C# project "..." is targeting ".NETFramework, Version=v4.0", which is not installed on this machine. [3]
11262정성태8/5/201711574오류 유형: 412. windbg - SOS does not support the current target architecture. [3]
11261정성태8/4/201713697디버깅 기술: 91. windbg - 풀 덤프 파일로부터 강력한 이름의 어셈블리 추출 후 사용하는 방법
11260정성태8/3/201712054.NET Framework: 670. C# - 실행 파일로부터 공개키를 추출하는 방법
11259정성태8/2/201711654.NET Framework: 669. 지연 서명된 어셈블리를 sn.exe -Vr 등록 없이 사용하는 방법
11258정성태8/1/201712100.NET Framework: 668. 지연 서명된 DLL과 서명된 DLL의 차이점파일 다운로드1
11257정성태7/31/201712698.NET Framework: 667. bypassTrustedAppStrongNames 옵션 설명파일 다운로드1
11256정성태7/25/201713761디버깅 기술: 90. windbg의 lm 명령으로 보이지 않는 .NET 4.0 ClassLibrary를 명시적으로 로드하는 방법 [1]
11255정성태7/18/201716295디버깅 기술: 89. Win32 Debug CRT Heap Internals의 0xBAADF00D 표시 재현 [1]파일 다운로드3
11254정성태7/17/201712953개발 환경 구성: 322. "Visual Studio Emulator for Android" 에뮬레이터를 "Android Studio"와 함께 쓰는 방법
11253정성태7/17/201712949Math: 21. "Coding the Matrix" 문제 2.5.1 풀이 [1]파일 다운로드1
11252정성태7/13/201712403오류 유형: 411. RTVS 또는 PTVS 실행 시 Could not load type 'Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindowFactory2'
11251정성태7/13/201710942디버깅 기술: 88. windbg 분석 - webengine4.dll의 MgdExplicitFlush에서 발생한 System.AccessViolationException의 crash 문제 (2)
11250정성태7/13/201713995디버깅 기술: 87. windbg 분석 - webengine4.dll의 MgdExplicitFlush에서 발생한 System.AccessViolationException의 crash 문제 [1]
11249정성태7/12/201711989오류 유형: 410. LoadLibrary("[...].dll") failed - The specified procedure could not be found.
11248정성태7/12/201718391오류 유형: 409. pip install pefile - 'cp949' codec can't decode byte 0xe2 in position 208687: illegal multibyte sequence
11247정성태7/12/201712620오류 유형: 408. SqlConnection 객체 생성 시 무한 대기 문제파일 다운로드1
11246정성태7/11/201711715VS.NET IDE: 118. Visual Studio - 다중 폴더에 포함된 파일들에 대한 "Copy to Output Directory"를 한 번에 설정하는 방법
11245정성태7/10/201716745개발 환경 구성: 321. Visual Studio Emulator for Android 소개 [2]
11244정성태7/10/201715734오류 유형: 407. Visual Studio에서 ASP.NET Core 실행할 때 dotnet.exe 프로세스의 -532462766 오류 발생 [1]
11243정성태7/10/201712629.NET Framework: 666. dotnet.exe - 윈도우 운영체제에서의 .NET Core 버전 찾기 규칙
11242정성태7/8/201713345제니퍼 .NET: 27. 제니퍼 닷넷 적용 사례 (7) - 노후된 스토리지 장비로 인한 웹 서비스 Hang (멈춤) 현상
11241정성태7/8/201712365오류 유형: 406. Xamarin 빌드 에러 XA5209, APT0000
11240정성태7/7/201714813.NET Framework: 665. ClickOnce를 웹 브라우저를 이용하지 않고 쿼리 문자열을 전달하면서 실행하는 방법 [3]파일 다운로드1
... 91  92  93  94  [95]  96  97  98  99  100  101  102  103  104  105  ...