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!

    Proget - Can't use the native API even with an API Key with Native API access

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 36 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.
    • M Offline
      m.webster_0049
      last edited by

      Using Proget Version 2023.20 (Build 14)

      We have recently installed a new instance of proget.
      We have created our feeds, and can upload/download just fine.

      We set up an API key that can access the Native API (screenshot - proget1)

      When we try to access the native API, we receive this error:
      Use of the native API is forbidden with the specified API key

      We are using the following curl command (the same process fails in postman as well):
      curl --silent --header "Content-Type: application/json" --request POST --data @feed.json https://<proget_host>/api/json/Feeds_GetFeed

      The feed.json file contains:
      {'Feed_Name':'<feed-name>', 'API_Key':'<API Key>'}

      We have an old instance of proget that we are sunsetting, and the exact same process works on that instance.

      Any help would be much appreciated!

      proget1.png

      stevedennisS 1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer @m.webster_0049
        last edited by

        Hi @m-webster_0049 ,

        The first thing I would try is to troubleshoot this is to switch to a very basic API key like hello. That just eliminates any typos, spacing, etc.

        Next, I would try specifying the API Key via X-ApiKey header (see docs) - just to see if you get a different error. It's possible there is a regression somewhere.

        Best,
        Steve

        1 Reply Last reply Reply Quote 1
        • M Offline
          m.webster_0049
          last edited by

          Hi Steve,

          Moving the API key to the header worked - thank you very much!

          Kind regards,
          Mark

          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