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!

    Feed API endpoint is returning a double response

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 10 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.
    • J Offline
      joshuagilman_1054
      last edited by

      On the latest version of ProGet (Version 5.3.24 (Build 7)) I am getting weird responses from the API. Example Powershell:

      $base_url = 'http://localhost:8624'
      $headers = @{
          'X-ApiKey' = $api_key
      }
      
      # Add the Powershell feed
      $feed_endpoint = $base_url + '/api/management/feeds/create'
      $request = @{
          name        = 'internal-powershell'
          feedType    = 'powershell'
          description = 'Internal Powershell feed for hosting modules'
          active      = $true
      }
      
      Invoke-RestMethod -Method Post -Uri $feed_endpoint -ContentType 'application/json' -Headers $headers -Body ($request | ConvertTo-Json)
      

      This is returning what appears to be a double response:

      {
      	"name": "internal-powershell",
      	"alternateNames": [],
      	"feedType": "powershell",
      	"description": "Internal Powershell feed for hosting modules",
      	"active": true,
      	"cacheConnectors": true,
      	"allowUnknownLicenses": true,
      	"allowedLicenses": [],
      	"blockedLicenses": [],
      	"symbolServerEnabled": false,
      	"stripSymbols": false,
      	"stripSource": false,
      	"connectors": [],
      	"vulnerabilitySources": [],
      	"retentionRules": [],
      	"packageFilters": {},
      	"packageAccessRules": {},
      	"replication": {},
      	"variables": {}
      } {
      	"name": "internal-powershell",
      	"alternateNames": [],
      	"feedType": "powershell",
      	"description": "Internal Powershell feed for hosting modules",
      	"active": true,
      	"cacheConnectors": true,
      	"allowUnknownLicenses": true,
      	"allowedLicenses": [],
      	"blockedLicenses": [],
      	"symbolServerEnabled": false,
      	"stripSymbols": false,
      	"stripSource": false,
      	"connectors": [],
      	"vulnerabilitySources": [],
      	"retentionRules": [],
      	"packageFilters": {},
      	"packageAccessRules": {},
      	"replication": {},
      	"variables": {}
      }
      

      It's throwing Powershell off of course due to having two root elements. I confirmed this behavior using Postman, so it's not anything unique with Powershell. Can anyone else confirm they are seeing this? It seems like it might be a bug.

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        Hi @joshuagilman_1054,

        I was able to reproduce this error and fixed it in ticket PG-1917. We will be making a ProGet release, 5.3.25, later today and this fix will be included.

        Thanks,
        Rich

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 0
        • J Offline
          joshuagilman_1054
          last edited by

          Can confirm the latest version resolves the issue. Thanks!

          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