Copied to clipboard

Flag this post as spam?

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


  • Yiannis Vavouranakis 38 posts 78 karma points
    Oct 07, 2024 @ 16:26
    Yiannis Vavouranakis
    0

    Error after upgrading from 14.2 to 14.3

    Hello.

    I just upgraded via nuget from 14.2 to 14.3 and on first run I get the following exception on my startup.cs:

    Action 'Umbraco.Cms.Api.Management.Controllers.Webhook.CreateWebhookController.Create (Umbraco.Cms.Api.Management)' has more than one parameter that was specified or inferred as bound from request body. Only one parameter per action may be bound from body. Inspect the following parameters, and use 'FromQueryAttribute' to specify bound from query, 'FromRouteAttribute' to specify bound from route, and 'FromBodyAttribute' for parameters to be bound from body:
    CancellationToken cancellationToken
    CreateWebhookRequestModel createWebhookRequestModel
    

    The relevant lines from startup.cs are as follows:

            app.UseSession()
                .UseUmbraco()
                .WithMiddleware(u =>
                {
                    u.UseBackOffice();
                    u.UseWebsite();
                })
    
            .WithEndpoints(u =>
            {
    
                u.UseBackOfficeEndpoints();
                u.UseWebsiteEndpoints();
            });
    

    Any help is greatly appreciated. The above code worked with 14.2

    Regards,

    Yiannis

Please Sign in or register to post replies

Write your reply to:

Draft