Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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!

    Publishing PowerShell: Error 400

    Scheduled Pinned Locked Moved Support
    nugetpublishingprogetpowershell
    3 Posts 1 Posters 16 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Background:
      I'm running the latest ProGet docker container, which might make a difference.

      Problem:
      When I try to publish a PowerShell module (this happens with all modules, but in this example I'm publishing Plaster) to our feed, I get a 400 error. If I specify an incorrect apikey, I get a 403 as expected.

      Register-PSRepository -Name proget-psgallery`
                            -SourceLocation http://192.168.1.230/nuget/proget-psgallery `
                            -PublishLocation http://192.168.1.230/nuget/proget-psgallery `
                            -InstallationPolicy Trusted `
                            -Verbose
      Publish-Module -Name Plaster `
                     -Repository proget-psgallery `
                     -NuGetApiKey 'Admin:Admin' `
                     -Verbose
      

      I get the following error message and haven't been successful at hunting it down for why:

      VERBOSE: Performing the operation "Publish-Module" on target "Version '1.0.1' of module 'Plaster'".
      Publish-PSArtifactUtility : Failed to publish module 'Plaster': 'Response status code does not indicate success: 400 (Bad Request).
      '.
      At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.1.3.1\PSModule.psm1:1260 char:17
      + ...             Publish-PSArtifactUtility @PublishPSArtifactUtility_Param ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (:) [Write-Error], WriteErrorException
          + FullyQualifiedErrorId : FailedToPublishTheModule,Publish-PSArtifactUtility
      

      Product: ProGet
      Version: 4.7.13

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Were you ever able to work-around this?

        Its hard to say what was causing the error, because everything looks correct from a quick scan of the commands ...

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Unfortunately, no, I was not. I'm in the process of taking a look at ProGet running in containers again, I will test in the near future and let you know. I don't expect it to be working unless something changed with the containers in the last several months.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation