Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ivan 1 post 81 karma points
    Jul 17, 2023 @ 04:45
    Ivan
    0

    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:

    "DeliveryApi": {
      "Enabled": true,
      "PublicAccess": true
    }
    

    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 :)

  • Adriano Fabri 469 posts 1633 karma points
    Aug 16, 2023 @ 09:31
    Adriano Fabri
    0

    Hi, I have the same problem

    Anyone can help us?

    Adriano

    enter image description here

  • Richard 11 posts 51 karma points
    Aug 30, 2023 @ 21:54
    Richard
    100

    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?

  • Jonas CA 4 posts 74 karma points
    Sep 05, 2023 @ 15:13
    Jonas CA
    0

    If you add the

    "DeliveryApi": { "Enabled": true, "PublicAccess": true }

    directly under the CMS tag it will work.

  • McGern 13 posts 44 karma points
    Mar 06, 2024 @ 22:14
    McGern
    0

    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.

    "DeliveryApi": {
      "Enabled": true,
      "PublicAccess": true
    }
    

    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.

  • Arun 141 posts 404 karma points
    Jul 01, 2024 @ 06:37
    Arun
    0

    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:

    {
      "Umbraco": {
        "CMS": {
          "DeliveryApi": {
            "Enabled": true
          }
        }
      }
    }
    

    If the issue exists, Try adding AddDeliveryApi in Startup

    services.AddUmbraco(_env, _config)
        .AddBackOffice()
        .AddWebsite()
        .AddComposers()
        .AddDeliveryApi()
        .Build();
    

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft