but keep getting 'Unauthorized' error when making a api call. One step from the docs I was unable to do was to rebuild DeliveryApiContentIndex as the button is greyed out along with note:
This index cannot be rebuilt because it has no assigned IIndexPopulator.
No matter what I try I'm getting Unauthorized response when making an api call through postman. When inspecting the logs of the calls, I'm getting the message:
"The Delivery API is not enabled, no indexing will performed for the Delivery API content index."
This sort of confirms that the issue could be not rebuilding the mentioned index.
So I didn't have the issue of a greyed out button with the IIndexProvider message, but the delivery api was always unauthorised.
Wasn't convinced the settings were actually doing anything, so I removed the settings. The delivery api section still showed, but now the reindex button was greyed (so the settings were doing something).
I put the settings back in, and also put the additional code in the startup.cs file (AddDeliveryApi) that the documentation explicitly stated was only needed for v11 and below.
public void ConfigureServices(IServiceCollection services)
{
services.AddUmbraco(_env, _config)
.AddBackOffice()
.AddWebsite()
// Register all Delivery API dependencies
.AddDeliveryApi()
.AddComposers()
.Build();
}
And low-and-behold it worked. Hope this helps someone else.
Content Delivery Api - DeliveryApiContentIndex rebuild greyed out
Hi there, I'm trying to set up Content Delivery Api in our Umbraco CMS project. I followed the docs, updated the appsettings with:
but keep getting 'Unauthorized' error when making a api call. One step from the docs I was unable to do was to rebuild
DeliveryApiContentIndex
as the button is greyed out along with note:This index cannot be rebuilt because it has no assigned IIndexPopulator
.No matter what I try I'm getting
Unauthorized
response when making an api call through postman. When inspecting the logs of the calls, I'm getting the message:"The Delivery API is not enabled, no indexing will performed for the Delivery API content index."
This sort of confirms that the issue could be not rebuilding the mentioned index.
Can anyone provide some help regarding this?
Thanks :)
Hi, I have the same problem
Anyone can help us?
Adriano
Same issue - we followed your documentation and gotten the same issue:
This index cannot be rebuilt because it has no assigned IIndexPopulator
Anyone?
Are you two still stuck on this as well?
If you add the
"DeliveryApi": { "Enabled": true, "PublicAccess": true }
directly under the CMS tag it will work.
Don't know if this will help anyone, but this was my scenario.
Upgraded from v11 to v13 mainly for purpose of using the content delivery api.
Followed the documentation and added the same config as mentioned a couple of times above.
So I didn't have the issue of a greyed out button with the IIndexProvider message, but the delivery api was always unauthorised.
Wasn't convinced the settings were actually doing anything, so I removed the settings. The delivery api section still showed, but now the reindex button was greyed (so the settings were doing something).
I put the settings back in, and also put the additional code in the startup.cs file (AddDeliveryApi) that the documentation explicitly stated was only needed for v11 and below.
And low-and-behold it worked. Hope this helps someone else.
Hi,
Could you please confirm you have enabled the DeliveryApi correctly at Umbraco > CMS in appsettings.
This issue often occurs when the DeliveryApi is configured incorrectly.
Ensure your
appsettings.json
configuration looks like this:If the issue exists, Try adding AddDeliveryApi in Startup
Thanks
is working on a reply...