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
-
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 keyWe 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_GetFeedThe 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!
-
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
-
Hi Steve,
Moving the API key to the header worked - thank you very much!
Kind regards,
Mark